RE: Gprof cycle member list sorting bug

2007-09-26 Thread Robert Norton
> -Original Message- > From: Nick Clifton [mailto:[EMAIL PROTECTED] > Sent: 26 September 2007 10:17 > To: Robert Norton > Subject: Re: Gprof cycle member list sorting bug > > Hi Robert, > > > > Thanks! It's amazing that no-one has reported this

Gprof cycle member list sorting bug

2007-09-21 Thread Robert Norton
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 chil