aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-01-10 16:27:55 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-01-10 16:27:55 +0000
commitaee1522197074239bfe9629b009015ac1c595810 (patch)
tree1c61d89d27908a9260eb91b58e5f14ab2e1024ed /gcc/opts.c
parentb339cf22f10f7816f4cd6056665e44a8c68479b2 (diff)
downloadgcc-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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 2ed5560..6532b56 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -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;