This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [4.2] PR32102 -Wall stomps on -Wstrict-overflow and -Wstrict-aliasing
- 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: 24 Jan 2008 10:25:22 -0800
- Subject: Re: [4.2] PR32102 -Wall stomps on -Wstrict-overflow and -Wstrict-aliasing
- References: <6c33472e0801240612n333b49efl1510398c6bffa859@mail.gmail.com>
"Manuel LÃpez-IbÃÃez" <lopezibanez@gmail.com> writes:
> 2008-01-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
>
> PR 32102
> * flags.h (warn_strict_aliasing): Remove.
> (warn_strict_overflow): Remove.
> * opts.c (warn_strict_aliasing): Remove.
> (warn_strict_overflow): Remove.
> * c-opts.c (c_common_handle_option): -Wall only sets
> -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
> (c_common_post_options): Give default values to -Wstrict-aliasing
> and -Wstrict-overflow if they are uninitialized.
> * common.opt (Wstrict-aliasing): Specify Var and Init.
> (Wstrict-overflow): Likewise.
>
> testsuite/
> * gcc.dg/Wstrict-overflow-21.c: New.
> * g++.dg/warn/Wstrict-aliasing-8.C: New.
This is OK for 4.2.
Thanks.
Ian