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.
This commit is contained in:
Lulu Cheng 2022-07-26 21:03:52 +08:00
parent 87ce0f1fd6
commit 5b96c823e5

View File

@ -378,8 +378,8 @@ fallback:
t.cmodel = constrained.cmodel ? opt_cmodel : CMODEL_NORMAL; t.cmodel = constrained.cmodel ? opt_cmodel : CMODEL_NORMAL;
if (t.cmodel != CMODEL_NORMAL) if (t.cmodel != CMODEL_NORMAL)
{ {
warning (0, "%qs is not supported, now cmodel is set to 'normal'.", warning (0, "%qs is not supported, now cmodel is set to %qs",
loongarch_cmodel_strings[t.cmodel]); loongarch_cmodel_strings[t.cmodel], "normal");
t.cmodel = CMODEL_NORMAL; t.cmodel = CMODEL_NORMAL;
} }