https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88484

--- Comment #1 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Fri Dec 14 20:42:50 2018
New Revision: 267151

URL: https://gcc.gnu.org/viewcvs?rev=267151&root=gcc&view=rev
Log:
[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.

Added:
    trunk/libgomp/testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
Modified:
    trunk/libgomp/ChangeLog
    trunk/libgomp/oacc-parallel.c

Reply via email to