On Wed, Mar 22, 2017 at 06:40:03AM -0700, Cesar Philippidis wrote:
> In addition to resolving the memory leak involving OpenACC delare
> clauses, this patch also corrects an ICE involving VLA variables as data
> clause arguments used in acc declare constructs. More details can be
> found here <https://gcc.gnu.org/ml/gcc-patches/2016-09/msg01630.html>.
> 
> Is this OK for trunk?
> 
> Cesar

> 2017-03-22  Cesar Philippidis  <ce...@codesourcery.com>
> 
>       PR c++/80029
> 
>       gcc/
>       * gimplify.c (is_oacc_declared): New function.
>       (oacc_default_clause): Use it to set default flags for acc declared
>       variables inside parallel regions.
>       (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
>       declared variables.
>       (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
>       declare attribute to any decl as necessary.
> 
>       libgomp/
>       * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.

Ok if testing passed.

        Jakub

Reply via email to