diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2006-12-22 15:54:05 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2006-12-22 15:54:05 +0000 |
commit | 2b0017242d6888e91146422831551f64e9854698 (patch) | |
tree | b213317c3f34e3c03d9cc572db411c63b2179ffe /gcc/c.opt | |
parent | 24fc18b98c30f23c5de5bce0fb6b90f5929fe453 (diff) | |
download | gcc-2b0017242d6888e91146422831551f64e9854698.zip gcc-2b0017242d6888e91146422831551f64e9854698.tar.gz gcc-2b0017242d6888e91146422831551f64e9854698.tar.bz2 |
re PR middle-end/7651 (Define -Wextra strictly in terms of other warning flags)
2006-12-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR middle-end/7651
* c.opt (Wclobbered): New.
* doc/invoke.texi (Wclobbered): Document it.
(Wextra): Enabled by -Wextra.
* c-opts.c (c_common_post_options): Enabled by -Wextra.
* flow.c (rest_of_handle_life): Replace Wextra with Wclobbered.
* function.c (setjmp_vars_warning): Only warn for Wclobbered.
(setjmp_args_warning): Likewise.
testsuite/
* gcc.dg/attr-returns_twice-1.c: Replace Wextra with Wclobbered.
* gcc.dg/setjmp-1.c: Add explicit Wclobbered.
From-SVN: r120151
Diffstat (limited to 'gcc/c.opt')
-rw-r--r-- | gcc/c.opt | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -141,6 +141,10 @@ Wchar-subscripts C ObjC C++ ObjC++ Var(warn_char_subscripts) Warn about subscripts whose type is \"char\" +Wclobbered +C ObjC C++ ObjC++ Var(warn_clobbered) Init(-1) +Warn about variables that might be changed by \"longjmp\" or \"vfork\" + Wcomment C ObjC C++ ObjC++ Warn about possibly nested block comments, and C++ comments spanning more than one physical line |