diff mbox

[4/6] Shrink-wrapping

Message ID 4E31E6F5.4070303@codesourcery.com
State New
Headers show

Commit Message

Bernd Schmidt July 28, 2011, 10:47 p.m. UTC
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
diff mbox

Patch

Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog	(revision 176904)
+++ gcc/ChangeLog	(working copy)
@@ -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: 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