c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction arguments as addressable...
authorChung-Lin Tang <cltang@codesourcery.com>
Fri, 3 Jun 2016 14:25:12 +0000 (14:25 +0000)
committerChung-Lin Tang <cltang@gcc.gnu.org>
Fri, 3 Jun 2016 14:25:12 +0000 (14:25 +0000)
commitb605f6639c14383eb274e90c4fa6f995af514fbc
tree23dd423fd8de79a39d2c78c414903727101e5b86
parent36b85e432865a312aa8edc8978e38266e8a0f14c
c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction arguments as addressable when async clause exists.

2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>

c/
* c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction
arguments as addressable when async clause exists.

cp/
* semantics.c (finish_omp_clauses): Mark OpenACC reduction
arguments as addressable when async clause exists.

fortran/
* trans-openmp.c (gfc_trans_omp_reduction_list): Add mark_addressable
bool parameter, set reduction clause DECLs as addressable when true.
(gfc_trans_omp_clauses): Pass clauses->async to
gfc_trans_omp_reduction_list, add comment describing OpenACC situation.

libgomp/
* testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
* testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.

From-SVN: r237070
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/fortran/ChangeLog
gcc/fortran/trans-openmp.c
libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-8.c [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-fortran/reduction-8.f90 [new file with mode: 0644]