Step through the sorted array of basic blocks.
authorNick Clifton <nickc@redhat.com>
Tue, 15 Mar 2005 16:20:42 +0000 (16:20 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 15 Mar 2005 16:20:42 +0000 (16:20 +0000)
gprof/ChangeLog
gprof/basic_blocks.c

index 09817ce..333e952 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-15  Nick Clifton  <nickc@redhat.com>
+
+       * basic_blocks.c (print_exec_counts): Step through sorted array of
+       basic blocks.
+
 2005-03-15  Alan Modra  <amodra@bigpond.net.au>
 
        * po/es.po: Commit new Spanish translation.
index ed26cae..e974ee8 100644 (file)
@@ -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.  */