http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49463
Ulrich Weigand <uweigand at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |uweigand at gcc dot gnu.org --- Comment #12 from Ulrich Weigand <uweigand at gcc dot gnu.org> 2011-08-10 13:35:41 UTC --- I'm also seeing the problem on spu-elf. In the 001.cgraph file, I get: strstr/5 @0xf6f90348 (asm: strstr) analyzed externally_visible finalized called by: calls: my_strstr/4 (1.00 per call) abort/8 References: var:inside_main (read) Refering this function: my_strstr/4 @0xf6f902a0 (asm: my_strstr) analyzed externally_visible prevailing_def_ironly finalized called by: strstr/5 (1.00 per call) calls: strchr/6 (6.32 per call) strncmp/7 (6.62 per call) strchr/6 (0.61 per call) abort/8 strcmp/9 (0.50 per call) strlen/10 (1.00 per call) References: var:inside_main (read) var:p (read) Refering this function: strstr/3 @0xf6f901f8 (asm: *my_strstr) called by: main_test/0 (1.00 per call) calls: References: Refering this function: So it would appear that the call to the renamed strstr in main_test is not properly associated with the definition of my_strstr, since in one case the asm name is prefixed with a '*', and in the other it isn't ...