From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18035 invoked by alias); 18 Jan 2008 01:47:10 -0000 Received: (qmail 17527 invoked by uid 48); 18 Jan 2008 01:46:26 -0000 Date: Fri, 18 Jan 2008 02:11:00 -0000 Message-ID: <20080118014626.17526.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/34841] 'make check' of libsndfile-1.0.17 fails with gcc-4.2.2 -O2 optimization, OK with -O1 one In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia 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/msg01871.txt.bz2 ------- Comment #7 from pinskia at gcc dot gnu dot org 2008-01-18 01:46 ------- (In reply to comment #6) > Did you mean CFLAGS='-O2 -fwrapv -Wstrict-overflow' or, rather, > CFLAGS='-O2 -Wstrict-overflow' ? The latter, you will only get the warning if -fwrapv is off as it warns when the optimizers are optimizing based on the undefinedness. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34841