From: Lulu Cheng Date: Tue, 26 Jul 2022 13:03:52 +0000 (+0800) Subject: LoongArch: Modify the output message string of the warning. X-Git-Tag: basepoints/gcc-14~5363 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b96c823e591980a80481eb3fe72092a6146f742;p=thirdparty%2Fgcc.git 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 --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; }