public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Tobias Burnus <burnus@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-118] libgomp/plugin/plugin-gcn.c: Use -foffload-options= in err msg
Date: Wed,  4 May 2022 16:40:21 +0000 (GMT)	[thread overview]
Message-ID: <20220504164021.93E523858C53@sourceware.org> (raw)

https://gcc.gnu.org/g:4a2061610726becfa5158e418c69800f5634b4c1

commit r13-118-g4a2061610726becfa5158e418c69800f5634b4c1
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Wed May 4 18:39:28 2022 +0200

    libgomp/plugin/plugin-gcn.c: Use -foffload-options= in err msg
    
    While -foffload=-<flag> works (never documented legacy feature),
    the documented way is to use -foffload-options=.
    
    libgomp/ChangeLog:
    
            * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.

Diff:
---
 libgomp/plugin/plugin-gcn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgomp/plugin/plugin-gcn.c b/libgomp/plugin/plugin-gcn.c
index f305d726874..2b32f5352c8 100644
--- a/libgomp/plugin/plugin-gcn.c
+++ b/libgomp/plugin/plugin-gcn.c
@@ -2352,7 +2352,7 @@ isa_matches_agent (struct agent_info *agent, Elf64_Ehdr *image)
 
       snprintf (msg, sizeof msg,
 		"GCN code object ISA '%s' does not match GPU ISA '%s'.\n"
-		"Try to recompile with '-foffload=-march=%s'.\n",
+		"Try to recompile with '-foffload-options=-march=%s'.\n",
 		isa_s, agent_isa_s, agent_isa_gcc_s);
 
       hsa_error (msg, HSA_STATUS_ERROR);


                 reply	other threads:[~2022-05-04 16:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220504164021.93E523858C53@sourceware.org \
    --to=burnus@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).