From 0c2263a73cfd9c882431edf3c93c1d4875375756 Mon Sep 17 00:00:00 2001 From: hubicka Date: Mon, 3 Jun 2002 18:16:50 +0000 Subject: * except.c (except.c): Do not rebuild CFG. * toplev.c (rest_of_compilation): Recompute CFG after sibcall optimization. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54217 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/toplev.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index 4c52a04c7a2..702937591b1 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2560,6 +2560,12 @@ rest_of_compilation (decl) rtx insn; optimize_sibling_and_tail_recursive_calls (); + /* Recompute the CFG as sibling optimization clobbers it randomly. */ + free_bb_for_insn (); + find_exception_handler_labels (); + rebuild_jump_labels (insns); + find_basic_blocks (insns, max_reg_num (), rtl_dump_file); + /* There is pass ordering problem - we must lower NOTE_INSN_PREDICTION notes before simplifying cfg and we must do lowering after sibcall that unhides parts of RTL chain and cleans up the CFG. @@ -2576,7 +2582,6 @@ rest_of_compilation (decl) scope_to_insns_initialize (); /* Complete generation of exception handling code. */ - find_exception_handler_labels (); if (doing_eh (0)) { timevar_push (TV_JUMP); -- cgit v1.2.1