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: [4.2] PR32102 -Wall stomps on -Wstrict-overflow and -Wstrict-aliasing


"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


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