This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR80029
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Cesar Philippidis <cesar at codesourcery dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 22 Mar 2017 14:42:49 +0100
- Subject: Re: [PATCH] Fix PR80029
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jakub at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 30BB619D22F
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 30BB619D22F
- References: <278ce4b7-cc02-453b-10fc-8094e9078d9a@codesourcery.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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 <cesar@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