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 13:07:34 -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 #6 from ralf_corsepius at rtems dot org 2007-05-03 14:07 -------
This is the minimised *.c having been extracted from newlib's file exposing the
bug:
-- snip --
extern void (*array_start []) (void);
extern void (*array_end []) (void);
void
init_array (void)
{
int count;
int i;
count = array_end - array_start;
for (i = 0; i < count; i++)
array_start[i] ();
}
-- snip --
Pretty trivial code, isn't it?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31786