public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-3328] Fix nvptx-specific '-foffload-options' syntax in 'libgomp.c/reverse-offload-sm30.c'
@ 2022-10-17 11:54 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-10-17 11:54 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:b61796663ba1fe8fb83203829398f3f89ec212b7

commit r13-3328-gb61796663ba1fe8fb83203829398f3f89ec212b7
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Fri Sep 23 11:29:50 2022 +0200

    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.

Diff:
---
 libgomp/testsuite/libgomp.c/reverse-offload-sm30.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgomp/testsuite/libgomp.c/reverse-offload-sm30.c b/libgomp/testsuite/libgomp.c/reverse-offload-sm30.c
index fbfeae1fd41..7f10fd4ded9 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-17 11:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-17 11:54 [gcc r13-3328] Fix nvptx-specific '-foffload-options' syntax in 'libgomp.c/reverse-offload-sm30.c' 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).