Patchwork [4/6] Shrink-wrapping

login
register
mail settings
Submitter Bernd Schmidt
Date July 28, 2011, 10:47 p.m.
Message ID <4E31E6F5.4070303@codesourcery.com>
Download mbox | patch
Permalink /patch/107382/
State New
Headers show

Comments

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

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