diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2018-09-15 09:21:09 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2018-09-15 09:21:09 +0000 |
commit | ae486e6281fb11a3ae37ccaecc840bb4c8c2551f (patch) | |
tree | 2c072044756f9c2f08347fd875bcf805f39969f5 /gcc/cfgexpand.c | |
parent | 19d6277cdf311f3e8dde6cbcdc72503c41cd9b4f (diff) | |
download | gcc-ae486e6281fb11a3ae37ccaecc840bb4c8c2551f.zip gcc-ae486e6281fb11a3ae37ccaecc840bb4c8c2551f.tar.gz gcc-ae486e6281fb11a3ae37ccaecc840bb4c8c2551f.tar.bz2 |
re PR middle-end/86864 (ICE in commit_one_edge_insertion on switch construct)
PR middle-end/86864
* cfgexpand.c (expand_gimple_basic_block): Be prepared for a BARRIER
before and after a JUMP_TABLE_DATA.
From-SVN: r264342
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index 697b238..c8d7805 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -5817,6 +5817,8 @@ expand_gimple_basic_block (basic_block bb, bool disable_tail_calls) last = PREV_INSN (last); if (JUMP_TABLE_DATA_P (last)) last = PREV_INSN (PREV_INSN (last)); + if (BARRIER_P (last)) + last = PREV_INSN (last); BB_END (bb) = last; update_bb_for_insn (bb); |