Committed as obvious (after bootstrapping&regtest).

https://gcc.gnu.org/r217457


2014-11-13  Manuel López-Ibáñez  <m...@gcc.gnu.org>

    * opts-global.c (postpone_unknown_option_warning): Fix spelling.
    (print_ignored_options): Fix quoting.
    * opts.c (common_handle_option): Likewise.
    (set_debug_level): Likewise.
    * toplev.c (process_options): Likewise.



Index: gcc/opts-global.c
===================================================================
--- gcc/opts-global.c    (revision 217382)
+++ gcc/opts-global.c    (working copy)
@@ -132,7 +132,7 @@
    we only complain about unknown -Wno-* options if they may have
    prevented a diagnostic. Otherwise, we just ignore them.  Note that
    if we do complain, it is only as a warning, not an error; passing
-   the compiler an unrecognised -Wno-* option should never change
+   the compiler an unrecognized -Wno-* option should never change
    whether the compilation succeeds or fails.  */

 static void
@@ -152,7 +152,7 @@

       opt = ignored_options.pop ();
       warning_at (UNKNOWN_LOCATION, 0,
-          "unrecognized command line option \"%s\"", opt);
+          "unrecognized command line option %qs", opt);
     }
 }

Index: gcc/opts.c
===================================================================
--- gcc/opts.c    (revision 217382)
+++ gcc/opts.c    (working copy)
@@ -1923,7 +1923,7 @@
                  ? STATIC_BUILTIN_STACK_CHECK
                  : GENERIC_STACK_CHECK;
       else
-    warning_at (loc, 0, "unknown stack check parameter \"%s\"", arg);
+    warning_at (loc, 0, "unknown stack check parameter %qs", arg);
       break;

     case OPT_fstack_limit:
@@ -2199,7 +2199,7 @@
       if (opts_set->x_write_symbols != NO_DEBUG
       && opts->x_write_symbols != NO_DEBUG
       && type != opts->x_write_symbols)
-    error_at (loc, "debug format \"%s\" conflicts with prior selection",
+    error_at (loc, "debug format %qs conflicts with prior selection",
           debug_type_names[type]);
       opts->x_write_symbols = type;
       opts_set->x_write_symbols = type;
@@ -2217,9 +2217,9 @@
     {
       int argval = integral_argument (arg);
       if (argval == -1)
-    error_at (loc, "unrecognised debug output level \"%s\"", arg);
+    error_at (loc, "unrecognised debug output level %qs", arg);
       else if (argval > 3)
-    error_at (loc, "debug output level %s is too high", arg);
+    error_at (loc, "debug output level %qs is too high", arg);
       else
     opts->x_debug_info_level = (enum debug_info_levels) argval;
     }
Index: gcc/toplev.c
===================================================================
--- gcc/toplev.c    (revision 217382)
+++ gcc/toplev.c    (working copy)
@@ -1463,7 +1463,7 @@
     debug_hooks = &vmsdbg_debug_hooks;
 #endif
   else
-    error ("target system does not support the \"%s\" debug format",
+    error ("target system does not support the %qs debug format",
        debug_type_names[write_symbols]);

   /* We know which debug output will be used so we can set flag_var_tracking

Reply via email to