diff options
author | Michael Matz <matz@gcc.gnu.org> | 2011-04-08 20:18:08 +0000 |
---|---|---|
committer | Michael Matz <matz@gcc.gnu.org> | 2011-04-08 20:18:08 +0000 |
commit | 42821aff0aa8c8118a0e19c2dc640b24ad26e1dc (patch) | |
tree | 913be8fcb10baa2e6e9e098eeb7d7b28a3bc79b9 /gcc/cfgexpand.c | |
parent | ad7be0090c0276c2526887944f5f6927e20507f2 (diff) | |
download | gcc-42821aff0aa8c8118a0e19c2dc640b24ad26e1dc.zip gcc-42821aff0aa8c8118a0e19c2dc640b24ad26e1dc.tar.gz gcc-42821aff0aa8c8118a0e19c2dc640b24ad26e1dc.tar.bz2 |
re PR rtl-optimization/48389 (ICE: in make_edges, at cfgbuild.c:319 with -mtune=pentiumpro)
PR middle-end/48389
* jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
functions.
(rebuild_jump_labels): Call rebuild_jump_labels_1.
* rtl.h (rebuild_jump_labels_chain): Declare.
* cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
insns inserted on edges.
testsuite/
* gcc.target/i386/pr48389.c: New test.
From-SVN: r172208
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index 81a23d4..cc1382f 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -4143,6 +4143,8 @@ gimple_expand_cfg (void) /* Zap the tree EH table. */ set_eh_throw_stmt_table (cfun, NULL); + /* We need JUMP_LABEL be set in order to redirect jumps, and hence + split edges which edge insertions might do. */ rebuild_jump_labels (get_insns ()); FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR, next_bb) @@ -4153,6 +4155,7 @@ gimple_expand_cfg (void) { if (e->insns.r) { + rebuild_jump_labels_chain (e->insns.r); /* Avoid putting insns before parm_birth_insn. */ if (e->src == ENTRY_BLOCK_PTR && single_succ_p (ENTRY_BLOCK_PTR) |