re PR rtl-optimization/49891 (ICE in redirect_jump_1)
authorBernd Schmidt <bernds@codesourcery.com>
Thu, 28 Jul 2011 22:47:21 +0000 (22:47 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Thu, 28 Jul 2011 22:47:21 +0000 (22:47 +0000)
PR rtl-optimization/49891
* cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
newly created returnjumps.

From-SVN: r176905

gcc/ChangeLog
gcc/cfgrtl.c

index 015724c506d11cc5990426e9b02491516a92dbca..c304e8245b6cd49abe09fac242a7983afcc07785 100644 (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
index 69377957cd6df13fc8870119f5fc273d59af8cd7..b60041ad9c89205dafb0be8b9ca745b3d8e54ed0 100644 (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