* ggc-common.c (cmp_statistics): Fix sorting.

From-SVN: r87404
This commit is contained in:
Jan Hubicka 2004-09-12 22:14:23 +02:00 committed by Jan Hubicka
parent 3d520aaf7d
commit 8591459399
2 changed files with 5 additions and 1 deletions

View 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

View 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. */