On 07/29/11 00:31, Richard Earnshaw wrote:

> This causes http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49891

Fixed with this.


Bernd
Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog       (revision 176904)
+++ gcc/ChangeLog       (working copy)
@@ -1,3 +1,9 @@
+2011-07-29  Bernd Schmidt  <ber...@codesourcery.com>
+
+       PR rtl-optimization/49891
+       * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
+       newly created returnjumps.
+
 2011-07-28  DJ Delorie  <d...@redhat.com>
 
        * expr.c (expand_expr_addr_expr_1): Detect a user request for a
Index: gcc/cfgrtl.c
===================================================================
--- gcc/cfgrtl.c        (revision 176881)
+++ gcc/cfgrtl.c        (working copy)
@@ -1254,6 +1254,7 @@ force_nonfallthru_and_redirect (edge e,
     {
 #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

Reply via email to