Bug 37521 - Building of GCC fails with internal compiler error for target AVR
Summary: Building of GCC fails with internal compiler error for target AVR
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.4.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-14 20:57 UTC by Tuomas Pennanen
Modified: 2008-09-15 13:13 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tuomas Pennanen 2008-09-14 20:57:46 UTC
Since revision 139590 (including) GCC fails to build successfully. Revision 139589 can be built successfully with the same configuration.


Configuration:

../trunk/configure --prefix=/usr/local/avr --target=avr --enable-languages=c,c++ --disable-nls --disable-libssp --with-dwarf2


Output when running "make":

.
.
.

make[4]: Entering directory `/home/tuomas/avr/gcc/build/avr/avr25/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
/home/tuomas/avr/gcc/build/./gcc/xgcc -B/home/tuomas/avr/gcc/build/./gcc/ -B/usr/local/avr/avr/bin/ -B/usr/local/avr/avr/lib/ -isystem /usr/local/avr/avr/include -isystem /usr/local/avr/avr/sys-include -g -O2 -mmcu=avr25 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition  -isystem ./include  -DDF=SF -Dinhibit_libc -mcall-prologues -Os -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc  -I. -I. -I../../.././gcc -I../../../../trunk/libgcc -I../../../../trunk/libgcc/. -I../../../../trunk/libgcc/../gcc -I../../../../trunk/libgcc/../include  -DHAVE_CC_TLS -o _mulsc3.o -MT _mulsc3.o -MD -MP -MF _mulsc3.dep -DL_mulsc3 -c ../../../../trunk/libgcc/../gcc/libgcc2.c \

../../../../trunk/libgcc/../gcc/libgcc2.c: In function '__mulsc3':
../../../../trunk/libgcc/../gcc/libgcc2.c:1890: error: unable to find a register to spill in class 'BASE_POINTER_REGS'
../../../../trunk/libgcc/../gcc/libgcc2.c:1890: error: this is the insn:
(insn 2450 1710 2451 4 ../../../../trunk/libgcc/../gcc/libgcc2.c:1851 (set (mem/c:QI (plus:HI (reg/f:HI 28 r28)
                (const_int 37 [0x25])) [31 S1 A8])
        (reg:QI 30 r30)) 4 {*movqi} (nil))
../../../../trunk/libgcc/../gcc/libgcc2.c:1890: internal compiler error: in spill_failure, at reload1.c:2098
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [_mulsc3.o] Error 1
make[4]: Leaving directory `/home/tuomas/avr/gcc/build/avr/avr25/libgcc'

.
.
.
Comment 1 Eric Weddington 2008-09-15 03:18:57 UTC
Anatoly Sokolov committed a patch as revision 140360 that may (or may not) fix this problem. See his post on the patches list:
http://gcc.gnu.org/ml/gcc-patches/2008-09/msg01054.html

Please try a more recent version to see if this patch solves this problem.

Thanks.
Comment 2 Tuomas Pennanen 2008-09-15 12:49:29 UTC
Yes, I just built revision 140370 successfully.

I just had had to initially wait three more hours before checking out HEAD...
Comment 3 Eric Weddington 2008-09-15 13:13:14 UTC
Marking bug as fixed.