------- Comment #8 from sergstesh at yahoo dot com  2008-01-18 01:52 -------
With CFLAGS='-O2 -Wstrict-overflow' still no warnings in 'make_check.log' and

"
[EMAIL 
PROTECTED]:/mnt/sda8/sergei/gcc4.2.x-O2_bug/gcc-4.2.2-O2/libsndfile-1.0.17>
grep -i warn make.log
sndfile.c:491: warning: the address of 'sf_error' will never be NULL
sndfile-play.c:292: warning: the address of ‘status’ will always
evaluate as ‘true’
[EMAIL 
PROTECTED]:/mnt/sda8/sergei/gcc4.2.x-O2_bug/gcc-4.2.2-O2/libsndfile-1.0.17>  
".

Here is a quote from a [EMAIL PROTECTED] contributor:

"
Yep, I had the same problem when upgrading my gcc from 4.1.2 to 4.2.2.
The test fails because some of the bit shuffling tricks
that Eric uses there does not work correctly with 4.2.2.
I backported lossy_comp_test.c from pre 1.0.18 - which does pass the test with
4.2.2 -
to my 1.0.17 and the test did then run correctly again.

Unfortunately, I later found out that gcc 4.2.2 with -03 does produce wrong
code
when I use stl:set in my c++ functions. So I now switched back to use 4.1.2.
Still, if you want you may try  to use the diff below that is the difference
between the 
original version from 1.0.17 and the patched version that works with gcc 4.2.2.
libsndfile worked for me with gcc 4.2.2 without problems.
".


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34841

Reply via email to