public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3367] 'libgomp.c/target-43.c': '-latomic' for nvptx offloading
@ 2021-09-06 9:51 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2021-09-06 9:51 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:086bb917d6efa32d9841c34a3b762f4278c762cd
commit r12-3367-g086bb917d6efa32d9841c34a3b762f4278c762cd
Author: Thomas Schwinge <thomas@codesourcery.com>
Date: Mon Sep 6 11:42:03 2021 +0200
'libgomp.c/target-43.c': '-latomic' for nvptx offloading
... to avoid a regression with recent
commit 090f0d78f194e3cda23fe904016db77ea36c38fa
"openmp: Improve expand_omp_atomic_pipeline":
unresolved symbol __atomic_compare_exchange_1
collect2: error: ld returned 1 exit status
mkoffload: fatal error: [...]/gcc/x86_64-pc-linux-gnu-accel-nvptx-none-gcc returned 1 exit status
libgomp/
* testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
Diff:
---
libgomp/testsuite/libgomp.c/target-43.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libgomp/testsuite/libgomp.c/target-43.c b/libgomp/testsuite/libgomp.c/target-43.c
index 46b1cfc5b20..028e9120f2a 100644
--- a/libgomp/testsuite/libgomp.c/target-43.c
+++ b/libgomp/testsuite/libgomp.c/target-43.c
@@ -1,4 +1,6 @@
/* { dg-do run } */
+/* { dg-additional-options "-foffload-options=nvptx-none=-latomic" { target { offload_target_nvptx } } } */
+
#include <stdlib.h>
#define N 32
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-06 9:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-06 9:51 [gcc r12-3367] 'libgomp.c/target-43.c': '-latomic' for nvptx offloading 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).