OSDN Git Service

2006-12-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Dec 2006 15:54:05 +0000 (15:54 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Dec 2006 15:54:05 +0000 (15:54 +0000)
commit0d438110c521e5799218007ecec7f3e1cb919bb7
treeb213317c3f34e3c03d9cc572db411c63b2179ffe
parentd819917f8654510afb127bf5e8cfce701f8c930d
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120151 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-opts.c
gcc/c.opt
gcc/doc/invoke.texi
gcc/flow.c
gcc/function.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/attr-returns_twice-1.c
gcc/testsuite/gcc.dg/setjmp-1.c