PR rtl-optimization/49891
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Jul 2011 22:47:21 +0000 (22:47 +0000)
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Jul 2011 22:47:21 +0000 (22:47 +0000)
* cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
newly created returnjumps.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176905 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cfgrtl.c

index 015724c..c304e82 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 6937795..b60041a 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