If the jump_block here contains just a return, we will crash later
in invert_jump. Don't allow that case.
* cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
branch to a return.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235903
138bc75d-0d04-0410-961f-
82ee72b054a4
+2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
+
+ * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
+ branch to a return.
+
2016-05-04 Jakub Jelinek <jakub@redhat.com>
PR c++/70906
cbranch_dest_block = cbranch_jump_edge->dest;
if (cbranch_dest_block == EXIT_BLOCK_PTR_FOR_FN (cfun)
+ || jump_dest_block == EXIT_BLOCK_PTR_FOR_FN (cfun)
|| !can_fallthru (jump_block, cbranch_dest_block))
return false;