public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/sphinx] LoongArch: Modify the output message string of the warning.
@ 2022-07-28 12:09 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-07-28 12:09 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1758efd9057bc6d1780b02f3b51e10ede233451e
commit 1758efd9057bc6d1780b02f3b51e10ede233451e
Author: Lulu Cheng <chenglulu@loongson.cn>
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-28 12:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-28 12:09 [gcc/devel/sphinx] LoongArch: Modify the output message string of the warning Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).