From: Tobias Burnus Date: Wed, 4 May 2022 16:39:28 +0000 (+0200) Subject: libgomp/plugin/plugin-gcn.c: Use -foffload-options= in err msg X-Git-Tag: basepoints/gcc-14~7089 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a2061610726becfa5158e418c69800f5634b4c1;p=thirdparty%2Fgcc.git libgomp/plugin/plugin-gcn.c: Use -foffload-options= in err msg While -foffload=- 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 --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);