summaryrefslogtreecommitdiff
path: root/gcc/ggc-common.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2004-09-12 22:14:23 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2004-09-12 20:14:23 +0000
commit8591459399b4773e629a008433fd4979e7bddd45 (patch)
tree6c2c0b025225209cdaacf32ebb0c8be620296773 /gcc/ggc-common.c
parent3d520aaf7d3b6812a46efb99b20063b89d1bb524 (diff)
downloadgcc-8591459399b4773e629a008433fd4979e7bddd45.tar.gz
* ggc-common.c (cmp_statistics): Fix sorting.
From-SVN: r87404
Diffstat (limited to 'gcc/ggc-common.c')
-rw-r--r--gcc/ggc-common.c2
1 files changed, 1 insertions, 1 deletions
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. */