diff options
author | Lulu Cheng <chenglulu@loongson.cn> | 2022-07-26 21:03:52 +0800 |
---|---|---|
committer | Lulu Cheng <chenglulu@loongson.cn> | 2022-07-26 21:21:46 +0800 |
commit | 5b96c823e591980a80481eb3fe72092a6146f742 (patch) | |
tree | 3ff5c5f9789e134dd0d23ebd4b2c2cca3714f099 /gcc | |
parent | 87ce0f1fd65b342754efde97cf0eefc1061af87c (diff) | |
download | gcc-5b96c823e591980a80481eb3fe72092a6146f742.zip gcc-5b96c823e591980a80481eb3fe72092a6146f742.tar.gz gcc-5b96c823e591980a80481eb3fe72092a6146f742.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/loongarch/loongarch-opts.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/loongarch/loongarch-opts.cc b/gcc/config/loongarch/loongarch-opts.cc index fc477bf..3f70943 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; } |