summaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-10 16:27:55 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-10 16:27:55 +0000
commit90e2341f11144bea35a058b4341490eabe2d0ac0 (patch)
tree1c61d89d27908a9260eb91b58e5f14ab2e1024ed /gcc/opts.c
parent42720af371a4d9bbedd5f772e06bdcfe5e8f7e97 (diff)
downloadgcc-90e2341f11144bea35a058b4341490eabe2d0ac0.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183069 138bc75d-0d04-0410-961f-82ee72b054a4
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 2ed556030eb..6532b56d752 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;