Compiling gcc 4.0.4 with a target of m68k-elf on a x86_64 Linux architecture (SuSE 10.1), an internal error is generated when compiling libgcc2.c: Command line that generated internal error: /home/zdenekjs/68k/gcc-4.0.4-build/gcc/xgcc -B/home/zdenekjs/68k/gcc-4.0.4-build/gcc/ -nostdinc -B/home/zdenekjs/68 k/gcc-4.0.4-build/m68k-elf/newlib/ -isystem /home/zdenekjs/68k/gcc-4.0.4-build/m68k-elf/newlib/targ-include -isyste m /home/zdenekjs/68k/gcc-4.0.4/newlib/libc/include -B/usr/local/m68k-elf/m68k-elf/bin/ -B/usr/local/m68k-elf/m68k-e lf/lib/ -isystem /usr/local/m68k-elf/m68k-elf/include -isystem /usr/local/m68k-elf/m68k-elf/sys-include -O2 -DIN_G CC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isy stem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc-4.0.4/gcc -I../../gcc -4.0.4/gcc/. -I../../gcc-4.0.4/gcc/../include -I../../gcc-4.0.4/gcc/../libcpp/include -m68000 -DL_fixdfdi -c ../.. /gcc-4.0.4/gcc/libgcc2.c -o libgcc/m68000/_fixdfdi.o Output: ./../gcc-4.0.4/gcc/libgcc2.c: In function ‘__fixdfdi’: ../../gcc-4.0.4/gcc/libgcc2.c:1256: internal compiler error: in do_SUBST, at combine.c:462 Please submit a full bug report,
Created attachment 13257 [details] preprocessed file saved with -save-temps
Created attachment 13258 [details] Assembly output saved with -save-temps
Same internal error appears to happen in 4.1.2 and 3.4.6 as well
only occurs on x86_64 host. If I switch machines to a i686 and compile, error does not occur. Error still occurs even if I configure with --host=i686-linux on the x86_64-unknown-linux-gnu machine.
*** This bug has been marked as a duplicate of 28911 ***