re PR c/32102 (-Wall stomps on -Wstrict-overflow)
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 22 Jan 2008 14:11:44 +0000 (14:11 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 22 Jan 2008 14:11:44 +0000 (14:11 +0000)
commit027b740e14194e7728da66cd91315f5936ddd7f5
treebb2483418bbf2754d717a1b449693c17c0eae2ce
parent963acd6f89ae458cfbddcba67bd0d7530a71feec
re PR c/32102 (-Wall stomps on -Wstrict-overflow)

2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

        PR 32102
        * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
        * 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.

From-SVN: r131720
gcc/ChangeLog
gcc/c-opts.c
gcc/common.opt
gcc/doc/invoke.texi
gcc/flags.h
gcc/opts.c
gcc/testsuite/ChangeLog