aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2021-09-06 11:42:03 +0200
committerThomas Schwinge <thomas@codesourcery.com>2021-09-06 11:51:13 +0200
commit086bb917d6efa32d9841c34a3b762f4278c762cd (patch)
tree87fcfa3bde6cdd8429687da52ccaa5b566188372
parentc0b03afeab4502da3040ef1ebbd28f826737fa8a (diff)
downloadgcc-086bb917d6efa32d9841c34a3b762f4278c762cd.zip
gcc-086bb917d6efa32d9841c34a3b762f4278c762cd.tar.gz
gcc-086bb917d6efa32d9841c34a3b762f4278c762cd.tar.bz2
'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.
-rw-r--r--libgomp/testsuite/libgomp.c/target-43.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgomp/testsuite/libgomp.c/target-43.c b/libgomp/testsuite/libgomp.c/target-43.c
index 46b1cfc..028e912 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