From: Nick Clifton Date: Tue, 15 Mar 2005 16:20:42 +0000 (+0000) Subject: Step through the sorted array of basic blocks. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7945f452e55d8a62b16e80fe35b52109a249bf2;p=binutils-gdb.git Step through the sorted array of basic blocks. --- diff --git a/gprof/ChangeLog b/gprof/ChangeLog index 09817cedda1..333e9528472 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 ed26caecaa5..e974ee8cba8 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. */