aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2002-06-03 20:16:50 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2002-06-03 18:16:50 +0000
commit5204d66596d7864904364c8a61a1e62e81c091a1 (patch)
tree766b4f10bf4b5fb575a750457126b07e7b091dfc /gcc/toplev.c
parent824030c6245b042e3dbc81e4151425c446787d91 (diff)
downloadgcc-5204d66596d7864904364c8a61a1e62e81c091a1.zip
gcc-5204d66596d7864904364c8a61a1e62e81c091a1.tar.gz
gcc-5204d66596d7864904364c8a61a1e62e81c091a1.tar.bz2
except.c (except.c): Do not rebuild CFG.
* except.c (except.c): Do not rebuild CFG. * toplev.c (rest_of_compilation): Recompute CFG after sibcall optimization. From-SVN: r54217
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 4c52a04..7029375 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);