Support multiple OpenACC wait clauses
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 30 Nov 2018 20:39:08 +0000 (21:39 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Fri, 30 Nov 2018 20:39:08 +0000 (21:39 +0100)
commitc34f4fbcc450474885baede3d5de8dcfcb9f103f
treedf2b9c7efec72adce3fd92fcb00a3e0eec0d834f
parentc223608f542416a5e47685013c680e256a583416
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.

From-SVN: r266684
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]