From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1729) id 0D6CF384D1B7; Wed, 29 Jun 2022 14:47:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D6CF384D1B7 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Kwok Yeung To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/omp/gcc-12] libgomp/plugin/plugin-gcn.c: Use -foffload-options= in err msg X-Act-Checkin: gcc X-Git-Author: Tobias Burnus X-Git-Refname: refs/heads/devel/omp/gcc-12 X-Git-Oldrev: 28c49e0f617b50b80e974582479b7fe077988b6d X-Git-Newrev: d9070421d9e2110b7e222e48432219043080a2fc Message-Id: <20220629144717.0D6CF384D1B7@sourceware.org> Date: Wed, 29 Jun 2022 14:47:17 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2022 14:47:17 -0000 https://gcc.gnu.org/g:d9070421d9e2110b7e222e48432219043080a2fc commit d9070421d9e2110b7e222e48432219043080a2fc Author: Tobias Burnus Date: Wed May 4 18:39:28 2022 +0200 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. (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 + + Backport from master: + 2022-05-04 Tobias Burnus + + * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options. + 2022-05-02 Marcel Vollweiler 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);