diff mbox

[gomp4] declare directive

Message ID 55E6B283.1040907@mentor.com
State New
Headers show

Commit Message

Tom de Vries Sept. 2, 2015, 8:25 a.m. UTC
On 12-08-15 20:31, James Norris wrote:
> diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c
> index bc54067..eee5340 100644
> --- a/gcc/fortran/trans-decl.c
> +++ b/gcc/fortran/trans-decl.c
> @@ -5864,8 +5864,7 @@ void
>   finish_oacc_declare (gfc_namespace *ns, enum sym_flavor flavor)
>   {
>     gfc_code *code, *end_c, *code2;
> -  gfc_oacc_declare *oc;
> -  gfc_omp_clauses *omp_clauses = NULL, *ret_clauses = NULL;
> +  gfc_oacc_declare *oc, *new_oc;
>     gfc_omp_namelist *n;
>     locus where = gfc_current_locus;
>

This introduces an unused variable new_oc.

Attached patch removes that and some other unused variables in finish_oacc_declare.

Committed.

Thanks,
- Tom
diff mbox

Patch

Remove unused vars in finish_oacc_declare

2015-09-02  Tom de Vries  <tom@codesourcery.com>

	* trans-decl.c (finish_oacc_declare): Remove unused variables.
---
 gcc/fortran/trans-decl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c
index c84b098..39acabd 100644
--- a/gcc/fortran/trans-decl.c
+++ b/gcc/fortran/trans-decl.c
@@ -5890,8 +5890,8 @@  find_module_oacc_declare_clauses (gfc_symbol *sym)
 void
 finish_oacc_declare (gfc_namespace *ns, enum sym_flavor flavor)
 {
-  gfc_code *code, *end_c, *code2;
-  gfc_oacc_declare *oc, *new_oc;
+  gfc_code *code;
+  gfc_oacc_declare *oc;
   gfc_omp_namelist *n;
   locus where = gfc_current_locus;
 
-- 
1.9.1