summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/ggc-common.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1c3b7affc1d..cea290af667 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c
index ccda55c8c53..4f4e68fc89f 100644
--- a/gcc/ggc-common.c
+++ b/gcc/ggc-common.c
@@ -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. */