When compiling xorg-cvs gcc throws the following ICE in programs/Xserver/fb/fbmmx.c fbmmx.c: In function 'mmxCombineAddU': fbmmx.c:564: internal compiler error: in for_each_index, at tree-ssa-loop-im.c:202 gcc (GCC) 4.0.2 20050823 (prerelease) Configured with: ../gcc-4.0-20050824/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ Condensed command line: gcc -c -O2 -march=pentium4 fbmmx.i Compiling the file without -O2 works. As the preprocessed file is very long I will attach it to this report instead of including it in the comment.
-- Summary: ICE in for_each_index, at tree-ssa-loop-im.c:202 Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P2 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ma1flfs at bath dot ac dot uk CC: gcc-bugs at gcc dot gnu dot org GCC host triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23546