[PR88484] OpenACC wait directive without wait argument but with async clause
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 14 Dec 2018 20:42:50 +0000 (21:42 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Fri, 14 Dec 2018 20:42:50 +0000 (21:42 +0100)
commitc8ab8aab9f93380f874e199366ad1badd1dd59a4
tree8551a5c19b0097badb3aeb47da3eb46ba13afe0b
parent1404af62dc414cc6b06e6c8c94a9922e04a7986a
[PR88484] OpenACC wait directive without wait argument but with async clause

We don't correctly handle "#pragma acc wait async (a)" for "a >= 0", handling
as a no-op whereas it should enqueue the appropriate wait operations on
"async (a)".

libgomp/
PR libgomp/88484
* oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
* testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.

From-SVN: r267151
libgomp/ChangeLog
libgomp/oacc-parallel.c
libgomp/testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c [new file with mode: 0644]