aarch64.c: tweaks to quoting in error messages (PR target/79925)

gcc/ChangeLog:
	PR target/79925
	* config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
	full command-line argument, rather than just "str".
	(aarch64_validate_march): Likewise.
	(aarch64_validate_mtune): Likewise.

From-SVN: r246066
This commit is contained in:
David Malcolm 2017-03-11 01:40:04 +00:00 committed by David Malcolm
parent 1d0cf89ab4
commit fb241da254
2 changed files with 13 additions and 5 deletions

View file

@ -1,3 +1,11 @@
2017-03-10 David Malcolm <dmalcolm@redhat.com>
PR target/79925
* config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
full command-line argument, rather than just "str".
(aarch64_validate_march): Likewise.
(aarch64_validate_mtune): Likewise.
2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
PR rtl-optimization/78911

View file

@ -8748,14 +8748,14 @@ aarch64_validate_mcpu (const char *str, const struct processor **res,
switch (parse_res)
{
case AARCH64_PARSE_MISSING_ARG:
error ("missing cpu name in -mcpu=%qs", str);
error ("missing cpu name in %<-mcpu=%s%>", str);
break;
case AARCH64_PARSE_INVALID_ARG:
error ("unknown value %qs for -mcpu", str);
aarch64_print_hint_for_core (str);
break;
case AARCH64_PARSE_INVALID_FEATURE:
error ("invalid feature modifier in -mcpu=%qs", str);
error ("invalid feature modifier in %<-mcpu=%s%>", str);
break;
default:
gcc_unreachable ();
@ -8782,14 +8782,14 @@ aarch64_validate_march (const char *str, const struct processor **res,
switch (parse_res)
{
case AARCH64_PARSE_MISSING_ARG:
error ("missing arch name in -march=%qs", str);
error ("missing arch name in %<-march=%s%>", str);
break;
case AARCH64_PARSE_INVALID_ARG:
error ("unknown value %qs for -march", str);
aarch64_print_hint_for_arch (str);
break;
case AARCH64_PARSE_INVALID_FEATURE:
error ("invalid feature modifier in -march=%qs", str);
error ("invalid feature modifier in %<-march=%s%>", str);
break;
default:
gcc_unreachable ();
@ -8815,7 +8815,7 @@ aarch64_validate_mtune (const char *str, const struct processor **res)
switch (parse_res)
{
case AARCH64_PARSE_MISSING_ARG:
error ("missing cpu name in -mtune=%qs", str);
error ("missing cpu name in %<-mtune=%s%>", str);
break;
case AARCH64_PARSE_INVALID_ARG:
error ("unknown value %qs for -mtune", str);