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]

nonoptimizing compilation speedup 2



Another init_alias_analysis leaked to nonoptimizing compilation from
mark_constant_function.

Honza

Thu Mar 28 16:02:05 CET 2002  Jan Hubicka  <jh@suse.cz>

	* toplev.c (rest_of_compilation): Cann mark_constant_function
	only when optimizing.

Index: toplev.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/toplev.c,v
retrieving revision 1.606
diff -c -3 -p -r1.606 toplev.c
*** toplev.c	2002/03/27 18:27:31	1.606
--- toplev.c	2002/03/28 15:02:01
*************** rest_of_compilation (decl)
*** 2856,2862 ****
  
       life_analyzis rarely eliminates modification of external memory.
     */
!   mark_constant_function ();
  
    close_dump_file (DFI_cfg, print_rtl_with_bb, insns);
  
--- 2856,2863 ----
  
       life_analyzis rarely eliminates modification of external memory.
     */
!   if (optimize)
!     mark_constant_function ();
  
    close_dump_file (DFI_cfg, print_rtl_with_bb, insns);
  


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