cfgcleanup: Bugfix in try_simplify_condjump
authorSegher Boessenkool <segher@kernel.crashing.org>
Wed, 4 May 2016 20:50:12 +0000 (22:50 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Wed, 4 May 2016 20:50:12 +0000 (22:50 +0200)
commit1a8fb012bda277aa1b4373d2f426986bce76460d
treeb365f615f8e40e96cefd511c4457912a5b7341e1
parent2d1ac15a6abfe3cf5cd6ee92a3d8960bd9fb1af8
cfgcleanup: Bugfix in try_simplify_condjump

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.

From-SVN: r235903
gcc/ChangeLog
gcc/cfgcleanup.c