]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
'libgomp.c-c++-common/reduction-{5,6}.c': Restrict '-latomic' to nvptx offloading...
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:45 +0000 (12:57 +0200)
Fix-up for recent commit 33b647956caa977d1ae489f9baed9cef70b4f382
"OpenMP: Fix SIMT for complex/float reduction with && and ||"; see
commit d42088e453042f4f8ba9190a7e29efd937ea2181 "Avoid -latomic for amdgcn
offloading".

libgomp/
* testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
'-latomic' to nvptx offloading compilation.
* testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.

libgomp/testsuite/libgomp.c-c++-common/reduction-5.c
libgomp/testsuite/libgomp.c-c++-common/reduction-6.c

index 21540512e23e8350be8bcba97c9833ac750e9a33..31fa2670312035ae176c5f86ca5045cee0f9cc5c 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 } } } */
 /* C / C++'s logical AND and OR operators take any scalar argument
    which compares (un)equal to 0 - the result 1 or 0 and of type int.
 
index 27d9ef6b635a6db877bf0249042cd823bc191fb5..727e11e4edf2b27f2d3b91cb4f343388ff52834a 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 } } } */
 /* C / C++'s logical AND and OR operators take any scalar argument
    which compares (un)equal to 0 - the result 1 or 0 and of type int.