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)
+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:
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);