* ggc-common.c (cmp_statistics): Fix sorting.
authorJan Hubicka <jh@suse.cz>
Sun, 12 Sep 2004 20:14:23 +0000 (22:14 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 12 Sep 2004 20:14:23 +0000 (20:14 +0000)
From-SVN: r87404

gcc/ChangeLog
gcc/ggc-common.c

index 1c3b7af..cea290a 100644 (file)
@@ -1,3 +1,7 @@
+2004-09-12  Jan Hubicka  <jh@suse.cz>
+
+       * ggc-common.c (cmp_statistics): Fix sorting.
+
 2004-09-12  David Edelsohn  <edelsohn@gnu.org>
 
        PR target/16795
index ccda55c..4f4e68f 100644 (file)
@@ -916,7 +916,7 @@ cmp_statistic (const void *loc1, const void *loc2)
   struct loc_descriptor *l1 = *(struct loc_descriptor **) loc1;
   struct loc_descriptor *l2 = *(struct loc_descriptor **) loc2;
   return ((l1->allocated + l1->overhead - l1->freed) -
-         (l2->allocated + l2->overhead - l1->freed));
+         (l2->allocated + l2->overhead - l2->freed));
 }
 
 /* Collect array of the descriptors from hashtable.  */