re PR c++/80029 (valgrind error in new_omp_context(omp_region_type) (gimplify.c:400))
commit7ba8651ed253b29ee17a0d735cc74eac1b826492
authorCesar Philippidis <cesar@gcc.gnu.org>
Wed, 22 Mar 2017 13:52:10 +0000 (22 06:52 -0700)
committerCesar Philippidis <cesar@gcc.gnu.org>
Wed, 22 Mar 2017 13:52:10 +0000 (22 06:52 -0700)
treed6411b1c55001c5719c4dc9933386850cae58c7f
parentbf634d1c4c9cc3cd3a4523ab4178b94398892ded
re PR c++/80029 (valgrind error in new_omp_context(omp_region_type) (gimplify.c:400))

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.

From-SVN: r246381
gcc/ChangeLog
gcc/gimplify.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-c-c++-common/declare-vla.c [new file with mode: 0644]