diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2012-05-17 11:50:37 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2012-05-17 11:50:37 +0000 |
commit | 9b095bf15cf5225b4223d33614d001cd44a501fc (patch) | |
tree | 9b9ef6fa3edd4dba37b6733c714b6a1103bd602c /gcc/opts.c | |
parent | f330f5991ef0182d59ab6b5b1c31f3bd5cb125ee (diff) | |
download | gcc-9b095bf15cf5225b4223d33614d001cd44a501fc.zip gcc-9b095bf15cf5225b4223d33614d001cd44a501fc.tar.gz gcc-9b095bf15cf5225b4223d33614d001cd44a501fc.tar.bz2 |
c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
c-family/
* c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
* c-opts.c (c_common_handle_option): Do not handle explicitly
Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
gcc/
* opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
(enable_warning_as_error): Do not special case Wuninitialized.
* optc-gen.awk: Add sanity checks.
From-SVN: r187628
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1712,8 +1712,11 @@ common_handle_option (struct gcc_options *opts, break; case OPT_pedantic_errors: - opts->x_pedantic = 1; dc->pedantic_errors = 1; + control_warning_option (OPT_Wpedantic, DK_ERROR, value, + loc, lang_mask, + handlers, opts, opts_set, + dc); break; case OPT_flto: @@ -2012,9 +2015,6 @@ enable_warning_as_error (const char *arg, int value, unsigned int lang_mask, control_warning_option (option_index, (int) kind, value, loc, lang_mask, handlers, opts, opts_set, dc); - if (option_index == OPT_Wuninitialized) - enable_warning_as_error ("maybe-uninitialized", value, lang_mask, - handlers, opts, opts_set, loc, dc); } free (new_option); } |