From f7945f452e55d8a62b16e80fe35b52109a249bf2 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 15 Mar 2005 16:20:42 +0000 Subject: [PATCH] Step through the sorted array of basic blocks. --- gprof/ChangeLog | 5 +++++ gprof/basic_blocks.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gprof/ChangeLog b/gprof/ChangeLog index 09817cedda..333e952847 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 ed26caecaa..e974ee8cba 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. */