On Mon, Jul 20, 2020 at 08:35:56PM +0200, Tobias Burnus wrote:
> gcc/ChangeLog:
> 
>       PR fortran/93553
>       * tree-nested.c (omp_new_clauses): New global var.
>       (convert_nonlocal_reference_op): Add init_tmp_var/init_tmp_var
>       vars to it.
>       (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Add
>       those as 'private' to the OpenMP clause.

> --- a/gcc/tree-nested.c
> +++ b/gcc/tree-nested.c
> @@ -111,6 +111,7 @@ struct nesting_info
>    char static_chain_added;
>  };
>  
> +static tree omp_new_clauses;

I don't like this global variable.
Can you please instead stick it into struct nesting_info and make sure it is
cleared where it is allocated?

        Jakub

Reply via email to