This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
nonoptimizing compilation speedup 2
- From: Jan Hubicka <jh at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org, rth at cygnus dot com
- Date: Thu, 28 Mar 2002 16:07:11 +0100
- Subject: 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);