Summary: | Cross compiler build for m68k--elf fails on x86_64-linux-gnu | ||
---|---|---|---|
Product: | gcc | Reporter: | Luke Powell <luke.powell> |
Component: | target | Assignee: | Kazu Hirata <kazu> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gcc-bugs, jens, kazu, luke.powell, tobutaz, zdenekjs |
Priority: | P3 | Keywords: | patch |
Version: | 4.1.1 | ||
Target Milestone: | 4.2.0 | ||
URL: | http://gcc.gnu.org/ml/gcc-patches/2006-09/msg01028.html | ||
Host: | x86_64-linux-gnu | Target: | m68k-unknown-elf |
Build: | x86_64-linux-gnu | Known to work: | |
Known to fail: | Last reconfirmed: | 2006-09-01 18:38:32 |
Description
Luke Powell
2006-08-30 21:34:02 UTC
Yes try the mainline for the cross compiler. *** This bug has been marked as a duplicate of 23442 *** I'm not familiar with that term, mainline. Is that the current CVS snapshot or something else? Thanks. (In reply to comment #2) > I'm not familiar with that term, mainline. Is that the current CVS snapshot or > something else? Thanks. It is the SVN trunk, so a svn snapshot will be a snapshot of the mainline. (In reply to comment #3) > It is the SVN trunk, so a svn snapshot will be a snapshot of the mainline. > I attempted a rebuild with the trunk at SVN revision 116602. The compilation did get past the previous bug building __fixdfdi.o, but an almost identical bug occurred later: /home/lpowell/build-gcc/./gcc/xgcc -B/home/lpowell/build-gcc/./gcc/ -B/home/lpowell/m68k/m68k-elf/bin/ -B/home/lpowell/m68k/m68k-elf/lib/ -isystem /home/lpowell/m68k/m68k-elf/include -isystem /home/lpowell/m68k/m68k-elf/sys-include -O2 -O2 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I/home/lpowell/gcc-trunk/gcc/gcc -I/home/lpowell/gcc-trunk/gcc/gcc/. -I/home/lpowell/gcc-trunk/gcc/gcc/../include -I/home/lpowell/gcc-trunk/gcc/gcc/../libcpp/include -I/home/lpowell/gcc-trunk/gcc/gcc/../libdecnumber -I../libdecnumber -m68000 -DL_mulsc3 -c /home/lpowell/gcc-trunk/gcc/gcc/libgcc2.c -o libgcc/m68000/_mulsc3.o /home/lpowell/gcc-trunk/gcc/gcc/libgcc2.c: In function ‘__mulsc3’: /home/lpowell/gcc-trunk/gcc/gcc/libgcc2.c:1854: internal compiler error: in do_SUBST, at combine.c:496 This error occurs at the same assertion in combine.c as the previous bug. Reproduced. Reduced down to: /* m68k-none-elf-gcc -O2 -m68000 */ _Complex float foo (float a) { return __builtin_copysign (a != a, a); } This is because of GEN_INT (0x80000000) is used in SImode. Searching for "GEN_INT (0x80000000)" in m68k.md reveals three such uses. Subject: Bug 28911 Author: kazu Date: Sun Sep 24 18:47:25 2006 New Revision: 117181 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117181 Log: gcc/ PR target/28911 * config/m68k/m68k.md (negsf2, negdf2, negxf2): Use -2147483647 - 1 instead of 0x80000000. gcc/testsuite/ PR target/28911 * gcc.dg/pr28911.c: New. Added: trunk/gcc/testsuite/gcc.dg/pr28911.c Modified: trunk/gcc/ChangeLog trunk/gcc/config/m68k/m68k.md trunk/gcc/testsuite/ChangeLog Just checked in a patch. *** Bug 31324 has been marked as a duplicate of this bug. *** |