public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-55] Avoid -latomic for amdgcn offloading
@ 2021-04-22 6:29 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2021-04-22 6:29 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d42088e453042f4f8ba9190a7e29efd937ea2181
commit r12-55-gd42088e453042f4f8ba9190a7e29efd937ea2181
Author: Richard Biener <rguenther@suse.de>
Date: Wed Apr 21 14:54:05 2021 +0200
Avoid -latomic for amdgcn offloading
libatomic isn't built for amdgcn but reduction-16.c adds it
via -foffload=-latomic when offloading for nvptx is enabled.
The following avoids linker errors when offloading to amdgcn is enabled
as well.
2021-04-21 Richard Biener <rguenther@suse.de>
libgomp/
* testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
only on nvptx-none.
Diff:
---
libgomp/testsuite/libgomp.c-c++-common/reduction-16.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libgomp/testsuite/libgomp.c-c++-common/reduction-16.c b/libgomp/testsuite/libgomp.c-c++-common/reduction-16.c
index e60fe3664ed..0eea73b144b 100644
--- a/libgomp/testsuite/libgomp.c-c++-common/reduction-16.c
+++ b/libgomp/testsuite/libgomp.c-c++-common/reduction-16.c
@@ -1,5 +1,5 @@
/* { dg-do run } */
-/* { 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-04-22 6:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22 6:29 [gcc r12-55] Avoid -latomic for amdgcn offloading Richard Biener
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).