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]

Fix -fpre-ipa-mem-report


HI,
pre-ipa-mem-reports force GGC to be done at each invokation in order to
collect data on live memory references, but forgets to reset the flag
after done.  This means that compiler continues GGCcollecting and works
slowly.

Fixed thus, bootstrapped i686-linux and comitted.

Honza

Index: ChangeLog
===================================================================
*** ChangeLog	(revision 130559)
--- ChangeLog	(working copy)
***************
*** 1,3 ****
--- 1,8 ----
+ 2007-11-30  Jan Hubicka  <jh@suse.cz>
+ 
+ 	* ggc-common.c (dump_ggc_loc_statistics): Reset ggc_force_collect
+ 	flag.
+ 
  2007-11-30  Seongbae Park <seongbae.park@gmail.com>
  
  	PR rtl-optimization/34171
Index: ggc-common.c
===================================================================
*** ggc-common.c	(revision 130559)
--- ggc-common.c	(working copy)
*************** dump_ggc_loc_statistics (bool final ATTR
*** 1018,1022 ****
--- 1018,1023 ----
    fprintf (stderr, "%-48s %10s       %10s       %10s       %10s       %10s\n",
  	   "source location", "Garbage", "Freed", "Leak", "Overhead", "Times");
    fprintf (stderr, "-------------------------------------------------------\n");
+   ggc_force_collect = false;
  #endif
  }


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