From: Nick Clifton Date: Tue, 15 Mar 2005 16:20:42 +0000 (+0000) Subject: Step through the sorted array of basic blocks. X-Git-Tag: csl-arm-20050325-branchpoint~144 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7945f452e55d8a62b16e80fe35b52109a249bf2;p=external%2Fbinutils.git Step through the sorted array of basic blocks. --- diff --git a/gprof/ChangeLog b/gprof/ChangeLog index 09817ce..333e952 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,8 @@ +2005-03-15 Nick Clifton + + * basic_blocks.c (print_exec_counts): Step through sorted array of + basic blocks. + 2005-03-15 Alan Modra * po/es.po: Commit new Spanish translation. diff --git a/gprof/basic_blocks.c b/gprof/basic_blocks.c index ed26cae..e974ee8 100644 --- a/gprof/basic_blocks.c +++ b/gprof/basic_blocks.c @@ -281,6 +281,8 @@ print_exec_counts () for (i = 0; i < len; ++i) { + sym = sorted_bbs [i]; + if (sym->ncalls > 0 || ! ignore_zeros) { /* FIXME: This only works if bfd_vma is unsigned long. */