aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-01-10 16:27:55 +0000
committerRichard Guenther <rguenther@suse.de>2012-01-10 16:27:55 +0000
commit235ff3c0a3cc9b403968571ac38fb1957647a01a (patch)
tree1c61d89d27908a9260eb91b58e5f14ab2e1024ed /gcc/opts.c
parent9e97708d5b9bbc177dfd4686710cc90c650e3dec (diff)
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: https://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;