This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]