re PR rtl-optimization/49891 (ICE in redirect_jump_1)

PR rtl-optimization/49891
	* cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
	newly created returnjumps.

From-SVN: r176905
This commit is contained in:
Bernd Schmidt 2011-07-28 22:47:21 +00:00 committed by Bernd Schmidt
parent 69135c94b3
commit e40a0b691b
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
PR rtl-optimization/49891
* cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
newly created returnjumps.
2011-07-28 DJ Delorie <dj@redhat.com>
* expr.c (expand_expr_addr_expr_1): Detect a user request for a

View File

@ -1254,6 +1254,7 @@ force_nonfallthru_and_redirect (edge e, basic_block target)
{
#ifdef HAVE_return
emit_jump_insn_after_setloc (gen_return (), BB_END (jump_block), loc);
JUMP_LABEL (BB_END (jump_block)) = ret_rtx;
#else
gcc_unreachable ();
#endif