]> git.ipfire.org Git - thirdparty/gcc.git/commit
[og9] Handle references in OpenACC "private" clauses
authorJulian Brown <julian@codesourcery.com>
Fri, 20 Sep 2019 20:53:10 +0000 (13:53 -0700)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 3 Mar 2020 11:51:25 +0000 (12:51 +0100)
commit154811a885dea312e14409db74033fc4248551fd
tree771d305760c0bbf36fb2dbf05ed580d329f32ee6
parentbb911c6f61333cf8e1018f303a66c35add30011c
[og9] Handle references in OpenACC "private" clauses

gcc/
* gimplify.c (localize_reductions): Rewrite references for
OMP_CLAUSE_PRIVATE also.

libgomp/
* testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
* testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
* testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.

(cherry picked from openacc-gcc-9-branch commit
28b843e3c547bda9857d2c60ffcc44f343e8ac4f)
gcc/ChangeLog.omp
gcc/gimplify.c
libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.oacc-c++/privatized-ref-2.C [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-c++/privatized-ref-3.C [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-fortran/privatized-ref-1.f95 [new file with mode: 0644]