summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-12 20:14:23 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-12 20:14:23 +0000
commit0c07444c6de5bb4e3c0e7e872e35a2db7cb8f85d (patch)
tree6c2c0b025225209cdaacf32ebb0c8be620296773
parentcb2e141eda2b6ea00a0671e451c62e98defe64b2 (diff)
downloadgcc-0c07444c6de5bb4e3c0e7e872e35a2db7cb8f85d.tar.gz
* ggc-common.c (cmp_statistics): Fix sorting.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87404 138bc75d-0d04-0410-961f-82ee72b054a4
-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. */