Hi, In cg_print.c:sort_members gprof loses a members of the linked list when sorting! The bug is at cg_print.c:169 (in current HEAD). The guard of the outer for loop should be just 'doing' not 'doing && doing->cg.cyc.next'.
To witness the bug just profile the attached program and look at the children of the cycle in the call graph view -- only one is present when there should be two. Thanks, Robert
profcycle.c
Description: profcycle.c
_______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils