This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Wclobbered (PR7651 Define -Wextra strictly in terms of other warning flags)


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]