From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14824 invoked by alias); 27 Jan 2008 18:38:32 -0000 Received: (qmail 14171 invoked by alias); 27 Jan 2008 18:37:46 -0000 Date: Sun, 27 Jan 2008 18:52:00 -0000 Message-ID: <20080127183746.14170.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/32102] -Wall stomps on -Wstrict-overflow In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "manu at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-01/txt/msg03351.txt.bz2 ------- Comment #16 from manu at gcc dot gnu dot org 2008-01-27 18:37 ------- Subject: Bug 32102 Author: manu Date: Sun Jan 27 18:36:59 2008 New Revision: 131887 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131887 Log: 2008-01-27 Manuel Lopez-Ibanez 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. Added: branches/gcc-4_2-branch/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-8.C branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/Wstrict-overflow-21.c Modified: branches/gcc-4_2-branch/gcc/ChangeLog branches/gcc-4_2-branch/gcc/c-opts.c branches/gcc-4_2-branch/gcc/common.opt branches/gcc-4_2-branch/gcc/flags.h branches/gcc-4_2-branch/gcc/opts.c branches/gcc-4_2-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32102