diff options
author | Richard Guenther <rguenther@suse.de> | 2012-01-10 16:27:55 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-01-10 16:27:55 +0000 |
commit | aee1522197074239bfe9629b009015ac1c595810 (patch) | |
tree | 1c61d89d27908a9260eb91b58e5f14ab2e1024ed /gcc/opts.c | |
parent | b339cf22f10f7816f4cd6056665e44a8c68479b2 (diff) | |
download | gcc-aee1522197074239bfe9629b009015ac1c595810.zip gcc-aee1522197074239bfe9629b009015ac1c595810.tar.gz gcc-aee1522197074239bfe9629b009015ac1c595810.tar.bz2 |
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
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1420,6 +1420,10 @@ common_handle_option (struct gcc_options *opts, /* Currently handled in a prescan. */ break; + case OPT_Werror: + dc->warning_as_error_requested = value; + break; + case OPT_Werror_: if (lang_mask == CL_DRIVER) break; |