This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/34841] 'make check' of libsndfile-1.0.17 fails with gcc-4.2.2 -O2 optimization, OK with -O1 one
- From: "sergstesh at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2008 23:33:06 -0000
- Subject: [Bug c/34841] 'make check' of libsndfile-1.0.17 fails with gcc-4.2.2 -O2 optimization, OK with -O1 one
- References: <bug-34841-13529@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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