]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgomp/plugin/plugin-gcn.c: Use -foffload-options= in err msg
authorTobias Burnus <tobias@codesourcery.com>
Wed, 4 May 2022 16:39:28 +0000 (18:39 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 4 May 2022 16:40:03 +0000 (18:40 +0200)
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.

libgomp/plugin/plugin-gcn.c

index f305d7268740821819bb2c1e843f58c2443dd506..2b32f5352c8b397a1e0c2c889929709511036608 100644 (file)
@@ -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);