http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48332
Summary: optabs changes (PR48263 fix) broke m68k-linux bootstrap Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: mi...@it.uu.se Current gcc-4.7 fails to build for m68k-linux due to an ICE while stage1 gcc builds libgcc: /tmp/gcc-4.7-r171418/libgcc/../gcc/libgcc2.c: In function '__mulvsi3': /tmp/gcc-4.7-r171418/libgcc/../gcc/libgcc2.c:157:18: internal compiler error: in maybe_legitimize_operand, at optabs.c:7034 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. make[2]: *** [_mulvsi3.o] Error 1 make[2]: Leaving directory `/tmp/objdir2/m68k-unknown-linux/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/tmp/objdir2' make: *** [all] Error 2 Bisection identified r171418 as the cause of the ICE: Author: rsandifo Date: Thu Mar 24 17:23:18 2011 New Revision: 171418 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171418 Log: gcc/ PR rtl-optimization/48263 * optabs.c (expand_binop_directly): Reinstate convert_modes code and original commutative_p handling. Use maybe_gen_insn. Configuration: /tmp/gcc-4.7-r171418/configure --target=m68k-unknown-linux --prefix=/home/mikpe/pkgs/linux-x86/cross-m68k --with-gmp=/home/mikpe/pkgs/linux-x86/gmp-4.3.2 --with-mpfr=/home/mikpe/pkgs/linux-x86/mpfr-2.4.2 --with-mpc=/home/mikpe/pkgs/linux-x86/mpc-0.8.2 --disable-plugin --disable-lto --disable-nls --disable-shared --disable-libmudflap --disable-multilib --enable-threads=posix --enable-checking=release --enable-languages=c