public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-12] libgomp/plugin/plugin-gcn.c: Use -foffload-options= in err msg
@ 2022-06-29 14:47 Kwok Yeung
0 siblings, 0 replies; only message in thread
From: Kwok Yeung @ 2022-06-29 14:47 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d9070421d9e2110b7e222e48432219043080a2fc
commit d9070421d9e2110b7e222e48432219043080a2fc
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.
(cherry picked from commit 4a2061610726becfa5158e418c69800f5634b4c1)
Diff:
---
libgomp/ChangeLog.omp | 7 +++++++
libgomp/plugin/plugin-gcn.c | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp
index 5c53648f6be..a8a121e8943 100644
--- a/libgomp/ChangeLog.omp
+++ b/libgomp/ChangeLog.omp
@@ -1,3 +1,10 @@
+2022-05-04 Tobias Burnus <tobias@codesourcery.com>
+
+ Backport from master:
+ 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
+
+ * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
+
2022-05-02 Marcel Vollweiler <marcel@codesourcery.com>
Backport from mainline:
diff --git a/libgomp/plugin/plugin-gcn.c b/libgomp/plugin/plugin-gcn.c
index 89436c51f17..d246351397e 100644
--- a/libgomp/plugin/plugin-gcn.c
+++ b/libgomp/plugin/plugin-gcn.c
@@ -2359,7 +2359,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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-29 14:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-29 14:47 [gcc/devel/omp/gcc-12] libgomp/plugin/plugin-gcn.c: Use -foffload-options= in err msg Kwok Yeung
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).