> /usr/local/gcc43/bin/gcc -v Using built-in specs. Target: i386-apple-darwin9.2.0 Configured with: ../gcc/configure --prefix=/usr/local/gcc43 --enable-threads=posix --with-arch=core2 --with-tune=core2 --with-gmp=/sw --with-mpfr=/sw --disable-nls --disable-bootstrap --enable-checking=yes,rtl CFLAGS=-g LDFLAGS=/usr/lib/libiconv.dylib --enable-languages=c,c++,objc,obj-c++ Thread model: posix gcc version 4.3.0 20080215 (experimental) (GCC) > /usr/local/gcc43/bin/gcc -O3 -fprofile-use -c pcx.i pcx.c: In function 'pcx_decode_frame': pcx.c:247: error: Dead histogram IOR value ior:0. memset (dst_28, 0, 0); pcx.c:247: internal compiler error: verify_histograms failed Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. I compiled ffmpeg profiled and didn't exercise code before doing -fprofile-use, so the stats are all empty.
Created attachment 15164 [details] source
Created attachment 15165 [details] gcda
Created attachment 15166 [details] gcno
Happens only with checking enabled. Honza, can you have a look here?
The proposed patch is attached to PR36129. Should also fix this PR. *** This bug has been marked as a duplicate of 36129 ***
Alexander, can you apply the patch at http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00562.html to 4.3 branch and test if it fixes your ICE? I would like to backport the patch to 4.3.
This is not the same failure as PR36129. It is similar, just happens in another place. It also fails on x86_64-linux-gnu. I'll look into it.
Taking bug.
Current 4.3.1 branch doesn't generate memset with zero length anymore. Closed as WORKSFORME, but if still fails, please reopen and attach new *.i, *.gcda and *.gcno files, produced with latest SVN HEAD versions of the compiler.