aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-03-22 13:31:03 +0100
committerMartin Liska <mliska@suse.cz>2022-03-22 13:39:31 +0100
commit1c2a3aeee7dce83a9068f741162a6126a808de1d (patch)
treefaa88fe139b1e346f65ad4821d88603f0a00fd53
parentc6e75a4a353fe36920bac34b66fca4bfb71f7d91 (diff)
downloadgcc-1c2a3aeee7dce83a9068f741162a6126a808de1d.zip
gcc-1c2a3aeee7dce83a9068f741162a6126a808de1d.tar.gz
gcc-1c2a3aeee7dce83a9068f741162a6126a808de1d.tar.bz2
i386: update error message format.
Use '%qs' instead of '(%qs)'. PR target/104898 gcc/ChangeLog: * config/i386/i386-options.cc (ix86_option_override_internal): Use '%qs' instead of '(%qs)'. gcc/testsuite/ChangeLog: * gcc.target/i386/pr99753.c: Update test. * gcc.target/i386/spellcheck-options-1.c: Likewise. * gcc.target/i386/spellcheck-options-2.c: Likewise. * gcc.target/i386/spellcheck-options-4.c: Likewise.
-rw-r--r--gcc/config/i386/i386-options.cc8
-rw-r--r--gcc/testsuite/gcc.target/i386/pr99753.c2
-rw-r--r--gcc/testsuite/gcc.target/i386/spellcheck-options-1.c2
-rw-r--r--gcc/testsuite/gcc.target/i386/spellcheck-options-2.c2
-rw-r--r--gcc/testsuite/gcc.target/i386/spellcheck-options-4.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/gcc/config/i386/i386-options.cc b/gcc/config/i386/i386-options.cc
index 8055393..32cc58a 100644
--- a/gcc/config/i386/i386-options.cc
+++ b/gcc/config/i386/i386-options.cc
@@ -2212,8 +2212,8 @@ ix86_option_override_internal (bool main_args_p,
if (i == pta_size)
{
error (main_args_p
- ? G_("bad value (%qs) for %<-march=%> switch")
- : G_("bad value (%qs) for %<target(\"arch=\")%> attribute"),
+ ? G_("bad value %qs for %<-march=%> switch")
+ : G_("bad value %qs for %<target(\"arch=\")%> attribute"),
opts->x_ix86_arch_string);
auto_vec <const char *> candidates;
@@ -2292,8 +2292,8 @@ ix86_option_override_internal (bool main_args_p,
if (ix86_tune_specified && i == pta_size)
{
error (main_args_p
- ? G_("bad value (%qs) for %<-mtune=%> switch")
- : G_("bad value (%qs) for %<target(\"tune=\")%> attribute"),
+ ? G_("bad value %qs for %<-mtune=%> switch")
+ : G_("bad value %qs for %<target(\"tune=\")%> attribute"),
opts->x_ix86_tune_string);
auto_vec <const char *> candidates;
diff --git a/gcc/testsuite/gcc.target/i386/pr99753.c b/gcc/testsuite/gcc.target/i386/pr99753.c
index 3def1fd..1b000bd 100644
--- a/gcc/testsuite/gcc.target/i386/pr99753.c
+++ b/gcc/testsuite/gcc.target/i386/pr99753.c
@@ -2,4 +2,4 @@
/* { dg-do compile } */
/* { dg-options "-march=amd -m32" } */
-/* { dg-error "bad value .'amd'. for '-march=' switch" "" { target *-*-* } 0 } */
+/* { dg-error "bad value 'amd' for '-march=' switch" "" { target *-*-* } 0 } */
diff --git a/gcc/testsuite/gcc.target/i386/spellcheck-options-1.c b/gcc/testsuite/gcc.target/i386/spellcheck-options-1.c
index 275f86c..a775545 100644
--- a/gcc/testsuite/gcc.target/i386/spellcheck-options-1.c
+++ b/gcc/testsuite/gcc.target/i386/spellcheck-options-1.c
@@ -3,5 +3,5 @@
/* { dg-do compile } */
/* { dg-options "-march=hasvel" } */
-/* { dg-error "bad value .'hasvel'. for '-march=' switch" "" { target *-*-* } 0 } */
+/* { dg-error "bad value 'hasvel' for '-march=' switch" "" { target *-*-* } 0 } */
/* { dg-message "valid arguments to '-march=' switch are: \[^\n\r]*; did you mean 'haswell'?" "" { target *-*-* } 0 } */
diff --git a/gcc/testsuite/gcc.target/i386/spellcheck-options-2.c b/gcc/testsuite/gcc.target/i386/spellcheck-options-2.c
index 8489062..91ddfe2 100644
--- a/gcc/testsuite/gcc.target/i386/spellcheck-options-2.c
+++ b/gcc/testsuite/gcc.target/i386/spellcheck-options-2.c
@@ -3,5 +3,5 @@
/* { dg-do compile } */
/* { dg-options "-mtune=hasvel" } */
-/* { dg-error "bad value .'hasvel'. for '-mtune=' switch" "" { target *-*-* } 0 } */
+/* { dg-error "bad value 'hasvel' for '-mtune=' switch" "" { target *-*-* } 0 } */
/* { dg-message "valid arguments to '-mtune=' switch are: \[^\n\r]*; did you mean 'haswell'?" "" { target *-*-* } 0 } */
diff --git a/gcc/testsuite/gcc.target/i386/spellcheck-options-4.c b/gcc/testsuite/gcc.target/i386/spellcheck-options-4.c
index 7eba412..71804a3 100644
--- a/gcc/testsuite/gcc.target/i386/spellcheck-options-4.c
+++ b/gcc/testsuite/gcc.target/i386/spellcheck-options-4.c
@@ -3,5 +3,5 @@
/* { dg-do compile } */
-__attribute__((target ("arch=hasvel"))) void foo (void) {} /* { dg-error "bad value .'hasvel'. for 'target..arch=..' attribute" } */
+__attribute__((target ("arch=hasvel"))) void foo (void) {} /* { dg-error "bad value 'hasvel' for 'target..arch=..' attribute" } */
/* { dg-message "valid arguments to 'target..arch=..' attribute are: \[^\n\r]*; did you mean 'haswell'?" "" { target *-*-* } .-1 } */