aboutsummaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2022-09-23 11:29:50 +0200
committerThomas Schwinge <thomas@codesourcery.com>2022-10-17 13:50:57 +0200
commitb61796663ba1fe8fb83203829398f3f89ec212b7 (patch)
treedac12d9ab829964feaf7cfe21af81f5585b87bbe /libgomp
parent46a8e017d048ec3271bbb898942e3b166c4e8ff3 (diff)
downloadgcc-b61796663ba1fe8fb83203829398f3f89ec212b7.zip
gcc-b61796663ba1fe8fb83203829398f3f89ec212b7.tar.gz
gcc-b61796663ba1fe8fb83203829398f3f89ec212b7.tar.bz2
Fix nvptx-specific '-foffload-options' syntax in 'libgomp.c/reverse-offload-sm30.c'
That is, '-mptx=_' is only valid in '-foffload-options=nvptx-none', too. Fix test case added in recent commit r13-2625-g6b43f556f392a7165582aca36a19fe7389d995b2 "nvptx/mkoffload.cc: Warn instead of error when reverse offload is not possible". libgomp/ * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific '-foffload-options' syntax.
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/testsuite/libgomp.c/reverse-offload-sm30.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgomp/testsuite/libgomp.c/reverse-offload-sm30.c b/libgomp/testsuite/libgomp.c/reverse-offload-sm30.c
index fbfeae1..7f10fd4 100644
--- a/libgomp/testsuite/libgomp.c/reverse-offload-sm30.c
+++ b/libgomp/testsuite/libgomp.c/reverse-offload-sm30.c
@@ -1,5 +1,5 @@
/* { dg-do link { target { offload_target_nvptx } } } */
-/* { dg-additional-options "-foffload-options=nvptx-none=-march=sm_30 -foffload=-mptx=_" } */
+/* { dg-additional-options "-foffload-options=nvptx-none=-march=sm_30 -foffload-options=nvptx-none=-mptx=_" } */
#pragma omp requires reverse_offload