http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37122
--- Comment #6 from Daniel Richard G. <skunk at iskunk dot org> 2012-05-11 19:16:50 UTC --- Created attachment 27383 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27383 updated patch for 4.7.0 I got bitten by this recently. Bootstrapping GCC 4.7.0 on Solaris 8: [...] cc -xarch=v9 -xildoff -c -g -DIN_GCC -DHAVE_CONFIG_H -I. -I. -I/home/src/gcc-4.7.0/gcc -I/home/src/gcc-4.7.0/gcc/. -I/home/src/gcc-4.7.0/gcc/../include -I/home/src/gcc-4.7.0/gcc/../libcpp/include -I/tg/freeport/arch/sunos64/include -I/tg/freeport/arch/sunos64/include -I/tg/freeport/arch/sunos64/include -I/home/src/gcc-4.7.0/gcc/../libdecnumber -I/home/src/gcc-4.7.0/gcc/../libdecnumber/dpd -I../libdecnumber /home/src/gcc-4.7.0/gcc/tree-ssa-loop-ivopts.c -o tree-ssa-loop-ivopts.o "/home/src/gcc-4.7.0/gcc/tree-ssa-loop-ivopts.c", line 6047: operands have incompatible types: struct {int cost, unsigned int complexity} ":" const struct {int cost, unsigned int complexity} "/home/src/gcc-4.7.0/gcc/tree-ssa-loop-ivopts.c", line 6048: operands have incompatible types: struct {int cost, unsigned int complexity} ":" const struct {int cost, unsigned int complexity} cc: acomp failed for /home/src/gcc-4.7.0/gcc/tree-ssa-loop-ivopts.c gmake[3]: *** [tree-ssa-loop-ivopts.o] Error 2 gmake[3]: Leaving directory `/tmp/gcc-build/gcc' gmake[2]: *** [all-stage1-gcc] Error 2 gmake[2]: Leaving directory `/tmp/gcc-build' gmake[1]: *** [stage1-bubble] Error 2 gmake[1]: Leaving directory `/tmp/gcc-build' gmake: *** [bootstrap-lean] Error 2 I'd love to patch the compiler, but Oracle won't let me do that unless I give them a fat wad of money. David's patch to the source is no longer applicable to 4.7.0, so I'm attaching an update.