diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-17 17:19:46 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-17 17:19:46 +0000 |
commit | febcf1b8e1ae674ed82a1586b4a9b41a962b76d3 (patch) | |
tree | f89cca49d50e0a51d31da3cd6577dce11dce4f37 /gcc/cfglayout.c | |
parent | 625a1adcc39420baf5a82973b10d59bb8da125aa (diff) | |
download | gcc-febcf1b8e1ae674ed82a1586b4a9b41a962b76d3.tar.gz |
PR bootstrap/42347
* cfglayout.c (fixup_reorder_chain): Allow returnjump_p
to have no fallthru edge.
* gcc.c-torture/compile/pr42347.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159496 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfglayout.c')
-rw-r--r-- | gcc/cfglayout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c index 7ba289f1a58..5e120570b9a 100644 --- a/gcc/cfglayout.c +++ b/gcc/cfglayout.c @@ -793,7 +793,8 @@ fixup_reorder_chain (void) to prevent rtl_verify_flow_info from complaining. */ if (!e_fall) { - gcc_assert (!onlyjump_p (bb_end_insn)); + gcc_assert (!onlyjump_p (bb_end_insn) + || returnjump_p (bb_end_insn)); bb->il.rtl->footer = emit_barrier_after (bb_end_insn); continue; } |