]> git.ipfire.org Git - thirdparty/gcc.git/commit
Enable firstprivate OpenACC reductions
authorJulian Brown <julian@codesourcery.com>
Tue, 26 Feb 2019 23:59:03 +0000 (15:59 -0800)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 3 Mar 2020 11:14:30 +0000 (12:14 +0100)
commit39869eb180d98f565432b6c99b3f1e10922d5dce
treed2d90e32c7d0f644e89cfe7047e645b032b4c123
parent8a6420c32b2fba8803b218519d24547943e417cd
Enable firstprivate OpenACC reductions

2018-09-05  Cesar Philippidis  <cesar@codesourcery.com>
    Chung-Lin Tang  <cltang@codesourcery.com>

gcc/
* gimplify.c (omp_add_variable): Enable firstprivate reduction
variables.

gcc/testsuite/
* c-c++-common/goacc/reduction-8.c: New test.

libgomp/
* testsuite/libgomp.oacc-c-c++-common/privatize-reduction-1.c: New
test.
* testsuite/libgomp.oacc-c-c++-common/privatize-reduction-2.c: New
test.

(cherry picked from openacc-gcc-9-branch commit
1add5113c32e7b8ea8536aee877f901a4a6eb5fc)
gcc/ChangeLog.omp
gcc/gimplify.c
gcc/testsuite/ChangeLog.omp
gcc/testsuite/c-c++-common/goacc/reduction-8.c [new file with mode: 0644]
libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.oacc-c-c++-common/privatize-reduction-1.c [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-c-c++-common/privatize-reduction-2.c [new file with mode: 0644]