public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-874] 'libgomp.c/target-44.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:abf937ac00e523576ca86957dfa9769281896ca5

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

    'libgomp.c/target-44.c': Restrict '-latomic' to nvptx offloading compilation
    
    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.

Diff:
---
 libgomp/testsuite/libgomp.c/target-44.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgomp/testsuite/libgomp.c/target-44.c b/libgomp/testsuite/libgomp.c/target-44.c
index 13e0c757845..b95e807a114 100644
--- a/libgomp/testsuite/libgomp.c/target-44.c
+++ b/libgomp/testsuite/libgomp.c/target-44.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 } } } */
 
 #include <stdlib.h>


^ 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-874] 'libgomp.c/target-44.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).