From: Thomas Schwinge Date: Mon, 6 Sep 2021 09:42:03 +0000 (+0200) Subject: 'libgomp.c/target-43.c': '-latomic' for nvptx offloading X-Git-Tag: basepoints/gcc-13~4946 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=086bb917d6efa32d9841c34a3b762f4278c762cd;p=thirdparty%2Fgcc.git '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 --git a/libgomp/testsuite/libgomp.c/target-43.c b/libgomp/testsuite/libgomp.c/target-43.c index 46b1cfc5b200..028e9120f2a3 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 #define N 32