]> 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)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 28 Jun 2022 20:55:27 +0000 (13:55 -0700)
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)

libgomp/ChangeLog.omp
libgomp/plugin/plugin-gcn.c

index 5c53648f6beeef0ff2a26a8edc0ab784f219bd17..a8a121e8943e407e5b7621658ef79c67595791cf 100644 (file)
@@ -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:
index 89436c51f17d646c9bac58756d93c85655585865..d246351397e20806f16337a3de5776bad9cc16a6 100644 (file)
@@ -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);