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: 20 Jan 2008 22:30:49 -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 #21 from sergstesh at yahoo dot com 2008-01-20 22:30 -------
Now that the flags are in this order: -Wall -Wstrict-overflow=5 :
a) the warnings during compilation:
"
sergei@amdam2:/mnt/sda8/sergei/gcc4.2.x-O2_bug/gcc-4.2.2-O2/libsndfile-1.0.17>
grep warn make.log
lpc.c:220: warning: assuming signed overflow does not occur when simplifying
conditional to constant
g72x.c:249: warning: assuming signed overflow does not occur when simplifying
conditional to constant
sndfile.c:491: warning: the address of 'sf_error' will never be NULL
aiff.c:557: warning: assuming signed overflow does not occur when changing X +-
C1 cmp C2 to X cmp C1 +- C2
sd2.c:540: warning: assuming signed overflow does not occur when changing X +-
C1 cmp C2 to X cmp C1 +- C2
sd2.c:558: warning: assuming signed overflow does not occur when changing X +-
C1 cmp C2 to X cmp C1 +- C2
sndfile-play.c:292: warning: the address of ‘status’ will always
evaluate as ‘true’
lossy_comp_test.c:1342: warning: assuming signed overflow does not occur when
simplifying abs (X) to X or -X
lossy_comp_test.c:1527: warning: assuming signed overflow does not occur when
simplifying abs (X) to X or -X
lossy_comp_test.c:761: warning: assuming signed overflow does not occur when
simplifying abs (X) to X or -X
lossy_comp_test.c:573: warning: assuming signed overflow does not occur when
simplifying abs (X) to X or -X
peak_chunk_test.c:127: warning: assuming signed overflow does not occur when
simplifying division
peak_chunk_test.c:194: warning: assuming signed overflow does not occur when
simplifying division
fix_this.c:155: warning: assuming signed overflow does not occur when
simplifying abs (X) to X or -X
sergei@amdam2:/mnt/sda8/sergei/gcc4.2.x-O2_bug/gcc-4.2.2-O2/libsndfile-1.0.17>
";
b) 'make check' still fails with the same
"
Line 765: Signal is all zeros (-27260928, 0xFE600800).
"
message.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34841