From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id B0FA53857C5B; Thu, 28 Jul 2022 12:09:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B0FA53857C5B Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/sphinx] LoongArch: Modify the output message string of the warning. X-Act-Checkin: gcc X-Git-Author: Lulu Cheng X-Git-Refname: refs/heads/devel/sphinx X-Git-Oldrev: ab3d567fa925d1c21d06a51c18e8a0fcec09a244 X-Git-Newrev: 1758efd9057bc6d1780b02f3b51e10ede233451e Message-Id: <20220728120947.B0FA53857C5B@sourceware.org> Date: Thu, 28 Jul 2022 12:09:47 +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: Thu, 28 Jul 2022 12:09:47 -0000 https://gcc.gnu.org/g:1758efd9057bc6d1780b02f3b51e10ede233451e commit 1758efd9057bc6d1780b02f3b51e10ede233451e Author: Lulu Cheng Date: Tue Jul 26 21:03:52 2022 +0800 LoongArch: Modify the output message string of the warning. Fix bug for "error: spurious trailing punctuation sequence '.' in format [-Werror=format-diag]". gcc/ChangeLog: * config/loongarch/loongarch-opts.cc: Modify the output message string of the warning. Diff: --- gcc/config/loongarch/loongarch-opts.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/loongarch/loongarch-opts.cc b/gcc/config/loongarch/loongarch-opts.cc index fc477bfd4bb..3f70943ded6 100644 --- a/gcc/config/loongarch/loongarch-opts.cc +++ b/gcc/config/loongarch/loongarch-opts.cc @@ -378,8 +378,8 @@ fallback: t.cmodel = constrained.cmodel ? opt_cmodel : CMODEL_NORMAL; if (t.cmodel != CMODEL_NORMAL) { - warning (0, "%qs is not supported, now cmodel is set to 'normal'.", - loongarch_cmodel_strings[t.cmodel]); + warning (0, "%qs is not supported, now cmodel is set to %qs", + loongarch_cmodel_strings[t.cmodel], "normal"); t.cmodel = CMODEL_NORMAL; }