[Bug target/31786] error: unable to find a register to spill in class 'BASE_POINTER_REGS'
ralf_corsepius at rtems dot org
gcc-bugzilla@gcc.gnu.org
Thu May 3 13:07:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list