]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
OpenACC: Remove 'acc_async_test' -> skip shortcut in 'libgomp/oacc-async.c:goacc_wait'
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 24 Feb 2023 15:17:57 +0000 (16:17 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Fri, 10 Mar 2023 14:37:47 +0000 (15:37 +0100)
We're not taking such a shortcut anywhere else, and (with future changes) it
has potential to confuse things if synchronization in a libgomp plugin happens
to have side effects even if an async queue currently is empty.

libgomp/
* oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
shortcut.

libgomp/oacc-async.c

index 2562afbd75323614774f7edb9548e0a1c0a237e2..82d00b64b50cb4b920cd848e24ba16a9f93f6b60 100644 (file)
@@ -410,9 +410,6 @@ goacc_wait (int async, int num_waits, va_list *ap)
          break;
        }
 
-      if (acc_async_test (qid))
-       continue;
-
       if (async == acc_async_sync)
        acc_wait (qid);
       else if (qid == async)