This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[commited] Fix sorting in statistics output
- From: Jan Hubicka <jh at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 12 Sep 2004 22:23:52 +0200
- Subject: [commited] Fix sorting in statistics output
Hi,
commited as obvous.
Honza
2004-09-12 Jan Hubicka <jh@suse.cz>
* ggc-common.c (cmp_statistics): Fix sorting.
Index: ggc-common.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ggc-common.c,v
retrieving revision 1.90
diff -c -3 -p -r1.90 ggc-common.c
*** ggc-common.c 9 Sep 2004 13:53:59 -0000 1.90
--- ggc-common.c 12 Sep 2004 20:07:29 -0000
*************** cmp_statistic (const void *loc1, const v
*** 916,922 ****
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));
}
/* Collect array of the descriptors from hashtable. */
--- 916,922 ----
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 - l2->freed));
}
/* Collect array of the descriptors from hashtable. */