summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-13 01:08:06 +0000
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-13 01:08:06 +0000
commit2bef00f6c5beb4563d4e8f5834a5a1e0955f07d9 (patch)
tree71af228ae671518483d416113abf3431b7af5e72
parent1fa1be9b502e7921f99be2d737b7c0f21cc0bc24 (diff)
downloadgcc-2bef00f6c5beb4563d4e8f5834a5a1e0955f07d9.tar.gz
2014-11-13 Manuel López-Ibáñez <manu@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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217457 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/opts-global.c4
-rw-r--r--gcc/opts.c8
-rw-r--r--gcc/toplev.c2
4 files changed, 15 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 458773eea48..5b96094511f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2014-11-13 Manuel López-Ibáñez <manu@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.
+
2014-11-12 Jakub Jelinek <jakub@redhat.com>
PR ipa/63838
diff --git a/gcc/opts-global.c b/gcc/opts-global.c
index 6825943a8a5..80a84f629d2 100644
--- a/gcc/opts-global.c
+++ b/gcc/opts-global.c
@@ -132,7 +132,7 @@ complain_wrong_lang (const struct cl_decoded_option *decoded,
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 @@ print_ignored_options (void)
opt = ignored_options.pop ();
warning_at (UNKNOWN_LOCATION, 0,
- "unrecognized command line option \"%s\"", opt);
+ "unrecognized command line option %qs", opt);
}
}
diff --git a/gcc/opts.c b/gcc/opts.c
index 752cc84473d..195cadd3e5f 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -1923,7 +1923,7 @@ common_handle_option (struct gcc_options *opts,
? 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 @@ set_debug_level (enum debug_info_type type, int extended, const char *arg,
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 @@ set_debug_level (enum debug_info_type type, int extended, const char *arg,
{
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;
}
diff --git a/gcc/toplev.c b/gcc/toplev.c
index aa1653e7c44..c259705d5b4 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1470,7 +1470,7 @@ process_options (void)
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