A simple C source fails with an ICE with 4.3.0 (the 20070907 and 20080228 snapshots) with optimizations (-O1/-O2/-Os -- I haven't narrowed it down to which exact optimization though). This machine is x86-64 but the same assertion occurs targeting both x86-64 (-m64) and x86 (-m32). Fedora Core 5 machine, system binutils 2.6.91.0.6. Same file compiles and executes with optimizations with GCC 4.1.1
$ gcc -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4.3-20080228/configure --prefix=/home/jack/opt --with-mpfr=/home/jack/opt Thread model: posix gcc version 4.3.0 20080228 (prerelease) (GCC) $ gcc -O2 speed.c -lm -o speed init2.c:38: assertion failed: ((32 - 0)+0) == (((32 - 0)+0)/8) * 8 && sizeof(mp_limb_t) == (((32 - 0)+0)/8) speed.c: In function main: speed.c:16: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. distcc[28444] ERROR: compile speed.c on localhost failed The file in question is simple enough that I'm definitely thinking this may be a build issue - it looks like any code calling libm functions fails with this problem? It doesn't appear to be anything in FC5's math.h; removing the include of math.h and explicitly declaring pow() had no effect. -- Summary: GCC 4.3.0 ICE on valid code in init2.c Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: lloyd at randombit dot net GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35426