aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgrtl.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-11-02 00:27:23 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2007-11-02 00:27:23 +0100
commit3e7eb73400d0873c1d0f162ea87b71be365cbaeb (patch)
treeeef851effed125bc870ede6e6f6f8f3910182e0e /gcc/cfgrtl.c
parente426bd2cc87fa44c6f2669f4d8b1c06458e3961a (diff)
downloadgcc-3e7eb73400d0873c1d0f162ea87b71be365cbaeb.zip
gcc-3e7eb73400d0873c1d0f162ea87b71be365cbaeb.tar.gz
gcc-3e7eb73400d0873c1d0f162ea87b71be365cbaeb.tar.bz2
re PR rtl-optimization/33648 (ICE in verify_flow_info for -fmodulo-sched -freorder-blocks-and-partition)
PR rtl-optimization/33648 * cfgrtl.c (cfg_layout_split_edge): Initialize BB_PARTITION of the newly created basic block. * gcc.dg/pr33648.c: New test. From-SVN: r129837
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r--gcc/cfgrtl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c
index d261b03..b5a432e 100644
--- a/gcc/cfgrtl.c
+++ b/gcc/cfgrtl.c
@@ -2696,6 +2696,10 @@ cfg_layout_split_edge (edge e)
? NEXT_INSN (BB_END (e->src)) : get_insns (),
NULL_RTX, e->src);
+ if (e->dest == EXIT_BLOCK_PTR)
+ BB_COPY_PARTITION (new_bb, e->src);
+ else
+ BB_COPY_PARTITION (new_bb, e->dest);
make_edge (new_bb, e->dest, EDGE_FALLTHRU);
redirect_edge_and_branch_force (e, new_bb);