omp-low.c (lower_oacc_reductions): Adjust variable lookup to use maybe_lookup_decl...
authorChung-Lin Tang <cltang@codesourcery.com>
Wed, 17 Aug 2016 12:08:30 +0000 (12:08 +0000)
committerChung-Lin Tang <cltang@gcc.gnu.org>
Wed, 17 Aug 2016 12:08:30 +0000 (12:08 +0000)
commit11c4c4ba47fce0a6be2125e2bd7ee3d16bc8d8af
tree22f67221131bc8c5e54b3185038cc612ef12ab7f
parent661d6efd62869911344c2d8bd57dd3ca8f4af1dc
omp-low.c (lower_oacc_reductions): Adjust variable lookup to use maybe_lookup_decl...

2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>

* omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
maybe_lookup_decl, to handle nested acc loop directives.

testsuite/
* c-c++-common/goacc/reduction-6.c: New testcase.

From-SVN: r239530
gcc/ChangeLog
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc/reduction-6.c [new file with mode: 0644]