This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix opt/2960
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 6 Oct 2002 20:01:52 -0700
- Subject: fix opt/2960
PR optimization/2960
* toplev.c (rest_of_compilation): Don't copy_loop_headers if
optimize_size.
Index: toplev.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/toplev.c,v
retrieving revision 1.678
diff -c -p -d -r1.678 toplev.c
*** toplev.c 2 Oct 2002 18:46:31 -0000 1.678
--- toplev.c 7 Oct 2002 02:59:39 -0000
*************** rest_of_compilation (decl)
*** 2676,2682 ****
/* CFG is no longer maintained up-to-date. */
free_bb_for_insn ();
! copy_loop_headers (insns);
purge_line_number_notes (insns);
find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
--- 2676,2683 ----
/* CFG is no longer maintained up-to-date. */
free_bb_for_insn ();
! if (!optimize_size)
! copy_loop_headers (insns);
purge_line_number_notes (insns);
find_basic_blocks (insns, max_reg_num (), rtl_dump_file);