aboutsummaryrefslogtreecommitdiff
path: root/gcc/flow.c
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2006-12-22 15:54:05 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2006-12-22 15:54:05 +0000
commit2b0017242d6888e91146422831551f64e9854698 (patch)
treeb213317c3f34e3c03d9cc572db411c63b2179ffe /gcc/flow.c
parent24fc18b98c30f23c5de5bce0fb6b90f5929fe453 (diff)
downloadgcc-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/flow.c')
-rw-r--r--gcc/flow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index 1da935b..78c2328 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -4695,7 +4695,7 @@ rest_of_handle_life (void)
cleanup_cfg (CLEANUP_EXPENSIVE | CLEANUP_UPDATE_LIFE | CLEANUP_LOG_LINKS
| (flag_thread_jumps ? CLEANUP_THREADING : 0));
- if (extra_warnings)
+ if (warn_clobbered)
{
setjmp_vars_warning (DECL_INITIAL (current_function_decl));
setjmp_args_warning ();