This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/31786] error: unable to find a register to spill in class 'BASE_POINTER_REGS'
- From: "ralf_corsepius at rtems dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 May 2007 14:20:40 -0000
- Subject: [Bug target/31786] error: unable to find a register to spill in class 'BASE_POINTER_REGS'
- References: <bug-31786-8160@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from ralf_corsepius at rtems dot org 2007-05-03 15:20 -------
FYI: Vanilla gcc-4.1.2 without newlib also exposes this issue with the code
fragment from comment #6:
./avr-gcc -o tmp.o -c init.c -O2
init.c: In function 'init_array':
init.c:12: error: unable to find a register to spill in class
'BASE_POINTER_REGS'
init.c:12: error: this is the insn:
(insn 61 30 31 2 (set (mem/c:HI (plus:HI (reg/f:HI 28 r28)
(const_int 1 [0x1])) [4 S2 A8])
(reg:HI 24 r24)) 12 {*movhi} (nil)
(nil))
init.c:12: confused by earlier errors, bailing out
--
ralf_corsepius at rtems dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|4.2.0 |4.1.2 4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31786