Bug 31324 - Building libgcc2 on x86_64 for m68k-elf: internal compiler error: in do_SUBST, at combine.c:462
Summary: Building libgcc2 on x86_64 for m68k-elf: internal compiler error: in do_SUBST...
Status: RESOLVED DUPLICATE of bug 28911
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 4.0.4
: P3 normal
Target Milestone: 4.2.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-23 08:46 UTC by Jerry Zdenek
Modified: 2007-03-27 16:36 UTC (History)
6 users (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target: m68k-unknown-elf
Build: x86_64-unknown-linux-gnu
Known to work: 4.2.0
Known to fail:
Last reconfirmed:


Attachments
preprocessed file saved with -save-temps (1.57 KB, text/plain)
2007-03-23 08:47 UTC, Jerry Zdenek
Details
Assembly output saved with -save-temps (122 bytes, text/plain)
2007-03-23 08:48 UTC, Jerry Zdenek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jerry Zdenek 2007-03-23 08:46:52 UTC
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,
Comment 1 Jerry Zdenek 2007-03-23 08:47:51 UTC
Created attachment 13257 [details]
preprocessed file saved with -save-temps
Comment 2 Jerry Zdenek 2007-03-23 08:48:28 UTC
Created attachment 13258 [details]
Assembly output saved with -save-temps
Comment 3 Jerry Zdenek 2007-03-23 08:50:08 UTC
Same internal error appears to happen in 4.1.2 and 3.4.6 as well
Comment 4 Jerry Zdenek 2007-03-23 08:52:20 UTC
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.
Comment 5 Andreas Schwab 2007-03-27 16:36:28 UTC

*** This bug has been marked as a duplicate of 28911 ***