'libgomp.c/target-44.c': Restrict '-latomic' to nvptx offloading compilation
authorThomas Schwinge <thomas@codesourcery.com>
Mon, 17 May 2021 06:05:40 +0000 (08:05 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 18 May 2021 10:57:35 +0000 (12:57 +0200)
Fix-up for recent commit f87990a2a8fc9e20d30462a0a4c9047582af0cd9
"[openmp, simt] Disable SIMT for user-defined reduction"; see commit
d42088e453042f4f8ba9190a7e29efd937ea2181 "Avoid -latomic for amdgcn
offloading".

libgomp/
* testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
offloading compilation.

libgomp/testsuite/libgomp.c/target-44.c

index 13e0c75..b95e807 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-additional-options "-foffload=-latomic" { target { offload_target_nvptx } } } */
+/* { dg-additional-options "-foffload=nvptx-none=-latomic" { target { offload_target_nvptx } } } */
 
 #include <stdlib.h>