[OpenACC] C++ reference mapping
authorCesar Philippidis <cesar@codesourcery.com>
Wed, 12 Sep 2018 15:21:19 +0000 (08:21 -0700)
committerJulian Brown <jules@gcc.gnu.org>
Wed, 12 Sep 2018 15:21:19 +0000 (15:21 +0000)
commit8e36332cf65b4ec5a1ea6b4b3a6ae8cb6ed9f455
tree21b85dccb3c797eff6332dff0040809c140e8351
parentc749305900f8afab04948702e637579b2db2199a
[OpenACC] C++ reference mapping

2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
    Julian Brown  <julian@codesourcery.com>

PR middle-end/86336

gcc/cp/
* semantics.c (finish_omp_clauses): Treat C++ references the same in
OpenACC as OpenMP.

gcc/
* gimplify.c (gimplify_scan_omp_clauses): Set
target_firstprivatize_array_bases in OpenACC parallel and kernels
region contexts.  Remove GOMP_MAP_FIRSTPRIVATE_REFERENCE clauses from
OpenACC data regions.

libgomp/
* testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.

Co-Authored-By: Julian Brown <julian@codesourcery.com>
From-SVN: r264244
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/gimplify.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-c++/non-scalar-data.C