From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20589 invoked by alias); 18 Jan 2008 23:33:49 -0000 Received: (qmail 20117 invoked by uid 48); 18 Jan 2008 23:33:06 -0000 Date: Fri, 18 Jan 2008 23:47:00 -0000 Message-ID: <20080118233306.20116.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: "sergstesh at yahoo dot com" 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/msg02027.txt.bz2 ------- Comment #19 from sergstesh at yahoo dot com 2008-01-18 23:33 ------- Regarding "BTW, is your makefile adding -Wstrict-overflow after or before -Wall -Wextra?". Here is how the first action line in 'make.log' looks: " 23 if /bin/sh ../../libtool --tag=CC --mode=compile /maxtor5/sergei/AppsFromScratchWD/install/gcc-4.2.2/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../../src -O2 -Wstrict-overflow=5 -std=gnu99 -W -Wall -Wdeclaration-after-statement -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast -Wwrite-strings -pipe -MT add.lo -MD -MP -MF ".deps/add.Tpo" -c -o add.lo add.c; \ 24 then mv -f ".deps/add.Tpo" ".deps/add.Plo"; else rm -f ".deps/add.Tpo"; exit 1; fi ". My understanding is that whatever is given to 'configure' as CFLAGS is inserted before the flags 'configure' and friends put. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34841