------- 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

Reply via email to