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 09817cedda19a4e8a725cbfb933b8b1e14566250..333e952847254e7ae9d68cf29b10a2a0ab0d5e57 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 ed26caecaa524eb14c6ce27a6009f7398d60d0ac..e974ee8cba8e5ee8b3dea70cc09ba0f9546f6369 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.  */