]> git.ipfire.org Git - thirdparty/gcc.git/commit
Support multiple OpenACC wait clauses
authortschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Nov 2018 20:39:08 +0000 (20:39 +0000)
committertschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Nov 2018 20:39:08 +0000 (20:39 +0000)
commitba688147af7632d7e1c420c98f2d301f7b9e427c
treedf2b9c7efec72adce3fd92fcb00a3e0eec0d834f
parentd084eb0a61d209ee0d852089ea76a672f519883b
Support multiple OpenACC wait clauses

Support for this is not explicitly called for in OpenACC 2.6, but given that
GCC internally decomposes "wait (1, 2)" into "wait (1) wait (2)" (similar for
other clauses, too), it's reasonable to also support that syntax in the front
ends -- which happens to already be the case for C, C++, and easy enough to do
for Fortran.

gcc/fortran/
* openmp.c (gfc_match_omp_clauses): Support multiple OpenACC wait
clauses.
gcc/testsuite/
* c-c++-common/goacc/asyncwait-5.c: New file.
* gfortran.dg/goacc/asyncwait-5.f: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266684 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc/asyncwait-5.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/asyncwait-5.f [new file with mode: 0644]