]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix nvptx-specific '-foffload-options' syntax in 'libgomp.c/reverse-offload-sm30.c'
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 23 Sep 2022 09:29:50 +0000 (11:29 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Mon, 17 Oct 2022 11:57:02 +0000 (13:57 +0200)
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.

(cherry picked from commit b61796663ba1fe8fb83203829398f3f89ec212b7)

libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.c/reverse-offload-sm30.c

index cb3541be3787667fc072640b468bb1cc8fc9a5c6..048314eb1be07dc08f00772bbbbbb19334fec402 100644 (file)
@@ -1,3 +1,11 @@
+2022-10-17  Thomas Schwinge  <thomas@codesourcery.com>
+
+       Backported from master:
+       2022-10-17  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
+       '-foffload-options' syntax.
+
 2022-10-14  Julian Brown  <julian@codesourcery.com>
 
        * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
index fbfeae1fd4143d85cf69f57cfe9232da275c1d5c..7f10fd4ded9d64039086d146ac54216b4f7afe2a 100644 (file)
@@ -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