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.
---
 gcc/config/aarch64/aarch64.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index 714bb79..a069427 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);
-- 
1.8.5.3

Reply via email to