From: David Malcolm Date: Sat, 11 Mar 2017 01:40:04 +0000 (+0000) Subject: aarch64.c: tweaks to quoting in error messages (PR target/79925) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fb241da254241b458b8065c7ab1c5a76fb137964;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 82fdef56166..2746608ab63 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2017-03-10 David Malcolm + + 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 PR rtl-optimization/78911 diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 714bb79f520..a069427f576 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -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);