]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: Modify the output message string of the warning.
authorLulu Cheng <chenglulu@loongson.cn>
Tue, 26 Jul 2022 13:03:52 +0000 (21:03 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Tue, 26 Jul 2022 13:21:46 +0000 (21:21 +0800)
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.

gcc/config/loongarch/loongarch-opts.cc

index fc477bfd4bbc3e61e0909fd67ad7988ef4dec5c7..3f70943ded6475318abde425649f878eafd70242 100644 (file)
@@ -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;
     }