http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55721
--- Comment #10 from Steve Ellcey <sje at gcc dot gnu.org> 2013-01-09 21:15:53
UTC ---
I am still seeing some UNSPEC notes during my mipt-mti-elf build, here is a
testcase cut down from newlib/libc/misc/init.c, (ps and pe were originally
__preinit_array_start and __preinit_array_end):
% cat bug2.c
extern void (*ps []) (void);
extern void (*pe []) (void);
void foo ()
{
long count;
long i;
count = pe - ps;
for (i = 0; i < count; i++)
ps[i] ();
}
% gcc -mips64r2 -mabi=64 -c -O2 -g bug2.c
bug2.c: In function 'foo':
bug2.c:3:6: note: non-delegitimized UNSPEC unknown (230) found in variable
location
void foo ()
^
bug2.c:3:6: note: non-delegitimized UNSPEC unknown (230) found in variable
location
bug2.c:3:6: note: non-delegitimized UNSPEC unknown (232) found in variable
location