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/flow.c | |
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/flow.c')
-rw-r--r-- | gcc/flow.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 (); |