------- Comment #12 from manu at gcc dot gnu dot org 2008-01-22 14:12 ------- Subject: Bug 32102
Author: manu Date: Tue Jan 22 14:11:44 2008 New Revision: 131720 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131720 Log: 2008-01-22 Manuel Lopez-Ibanez <[EMAIL PROTECTED]> 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. Modified: trunk/gcc/ChangeLog trunk/gcc/c-opts.c trunk/gcc/common.opt trunk/gcc/doc/invoke.texi trunk/gcc/flags.h trunk/gcc/opts.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32102