This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Wclobbered (PR7651 Define -Wextra strictly in terms of other warning flags)
- From: Ian Lance Taylor <iant at google dot com>
- To: Manuel LÃpez-Ib ÃÃez <lopezibanez at gmail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: 19 Dec 2006 17:56:46 -0800
- Subject: Re: Wclobbered (PR7651 Define -Wextra strictly in terms of other warning flags)
- References: <6c33472e0612171459v578ddabag33e0ff636f31451a@mail.gmail.com>
"Manuel LÃpez-IbÃÃez" <lopezibanez@gmail.com> writes:
> 2006-12-17 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/
> 2006-12-17 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
>
> PR middle-end/7651
> * gcc.dg/attr-returns_twice-1.c: Replace Wextra with Wclobbered.
> * gcc.dg/setjmp-1.c: Add explicit Wclobbered.
This is OK.
This requires some changes to the C/C++ frontends, but I'm going to
approve it on the grounds that those are trivial. Please give the
C/C++ frontend maintainers a day to object.
Thanks.
:REVIEWMAIL:
Ian