re PR middle-end/70643 (broken openacc reduction inside a fortran module)
authorCesar Philippidis <cesar@codesourcery.com>
Thu, 14 Apr 2016 13:44:17 +0000 (06:44 -0700)
committerCesar Philippidis <cesar@gcc.gnu.org>
Thu, 14 Apr 2016 13:44:17 +0000 (06:44 -0700)
commite387fc6494396c13f68458c7e3ed94d492aca54f
treefd4a4a91473cffc90c7a2d4498805190de428f88
parente21401b6b11f87986ee08499619b861c6964286c
re PR middle-end/70643 (broken openacc reduction inside a fortran module)

PR middle-end/70643

gcc/
* omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
when building a mem ref for the incoming reduction variable.

libgomp/
* testsuite/libgomp.oacc-fortran/pr70643.f90: New test.

From-SVN: r234973
gcc/ChangeLog
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-fortran/pr70643.f90 [new file with mode: 0644]