public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-875] 'libgomp.c-c++-common/reduction-{5, 6}.c': Restrict '-latomic' to nvptx offloading compilation
@ 2021-05-18 10:59 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2021-05-18 10:59 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:937fa5fb7840c19c96b1fdf1ce678699649a6c5e

commit r12-875-g937fa5fb7840c19c96b1fdf1ce678699649a6c5e
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Mon May 17 08:05:40 2021 +0200

    'libgomp.c-c++-common/reduction-{5,6}.c': Restrict '-latomic' to nvptx offloading compilation
    
    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.

Diff:
---
 libgomp/testsuite/libgomp.c-c++-common/reduction-5.c | 2 +-
 libgomp/testsuite/libgomp.c-c++-common/reduction-6.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libgomp/testsuite/libgomp.c-c++-common/reduction-5.c b/libgomp/testsuite/libgomp.c-c++-common/reduction-5.c
index 21540512e23..31fa2670312 100644
--- a/libgomp/testsuite/libgomp.c-c++-common/reduction-5.c
+++ b/libgomp/testsuite/libgomp.c-c++-common/reduction-5.c
@@ -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.
 
diff --git a/libgomp/testsuite/libgomp.c-c++-common/reduction-6.c b/libgomp/testsuite/libgomp.c-c++-common/reduction-6.c
index 27d9ef6b635..727e11e4edf 100644
--- a/libgomp/testsuite/libgomp.c-c++-common/reduction-6.c
+++ b/libgomp/testsuite/libgomp.c-c++-common/reduction-6.c
@@ -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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-18 10:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-18 10:59 [gcc r12-875] 'libgomp.c-c++-common/reduction-{5, 6}.c': Restrict '-latomic' to nvptx offloading compilation Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).