Commit aee15221 by Richard Guenther Committed by Richard Biener

re PR lto/51806 (-flto ignores -Werror)

2012-01-10  Richard Guenther  <rguenther@suse.de>

	PR middle-end/51806
	c-family/
	* c-opts.c (c_common_handle_option): Move -Werror handling
	to language independent code.

	* opts.c (common_handle_option): Handle -Werror.

From-SVN: r183069
parent b339cf22
2012-01-10 Richard Guenther <rguenther@suse.de>
PR middle-end/51806
* opts.c (common_handle_option): Handle -Werror.
2012-01-10 Andreas Schwab <schwab@linux-m68k.org> 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
* config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
......
2012-01-10 Richard Guenther <rguenther@suse.de>
PR middle-end/51806
* c-opts.c (c_common_handle_option): Move -Werror handling
to language independent code.
2012-01-05 Richard Guenther <rguenther@suse.de> 2012-01-05 Richard Guenther <rguenther@suse.de>
PR middle-end/51764 PR middle-end/51764
......
...@@ -449,10 +449,6 @@ c_common_handle_option (size_t scode, const char *arg, int value, ...@@ -449,10 +449,6 @@ c_common_handle_option (size_t scode, const char *arg, int value,
cpp_opts->warn_endif_labels = value; cpp_opts->warn_endif_labels = value;
break; break;
case OPT_Werror:
global_dc->warning_as_error_requested = value;
break;
case OPT_Wformat: case OPT_Wformat:
set_Wformat (value); set_Wformat (value);
break; break;
......
...@@ -1420,6 +1420,10 @@ common_handle_option (struct gcc_options *opts, ...@@ -1420,6 +1420,10 @@ common_handle_option (struct gcc_options *opts,
/* Currently handled in a prescan. */ /* Currently handled in a prescan. */
break; break;
case OPT_Werror:
dc->warning_as_error_requested = value;
break;
case OPT_Werror_: case OPT_Werror_:
if (lang_mask == CL_DRIVER) if (lang_mask == CL_DRIVER)
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment