Patchwork Bootstrap broken on arm-linux was: ARM patch: Thumb2 reorg

login
register
mail settings
Submitter Bernd Schmidt
Date June 13, 2010, 1:26 a.m.
Message ID <4C1433C1.2000706@codesourcery.com>
Download mbox | patch
Permalink /patch/55407/
State New
Headers show

Comments

Bernd Schmidt - June 13, 2010, 1:26 a.m.
On 06/12/2010 02:45 PM, Laurent GUERBY wrote:

> This likely broke native bootstrap on ARM, see last comment of:
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44458

Sorry about that.  Hopefully fixed now with the patch below.


Bernd

Patch

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 160663)
+++ ChangeLog	(working copy)
@@ -1,3 +1,7 @@ 
+2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
+
+	* config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
+
 2010-06-12  Jan Hubicka  <jh@suse.cz>
 
 	* df-core.c (df_clear_bb_info): New function.
Index: config/arm/arm.c
===================================================================
--- config/arm/arm.c	(revision 160663)
+++ config/arm/arm.c	(working copy)
@@ -11457,13 +11457,12 @@ 
 		  rtx dst = XEXP (pat, 0);
 		  rtx src = XEXP (pat, 1);
 		  rtx op0 = XEXP (src, 0);
-		  rtx op1 = XEXP (src, 1);
 		  if (rtx_equal_p (dst, op0)
 		      || GET_CODE (src) == PLUS || GET_CODE (src) == MINUS)
 		    {
 		      rtx ccreg = gen_rtx_REG (CCmode, CC_REGNUM);
 		      rtx clobber = gen_rtx_CLOBBER (VOIDmode, ccreg);
-		      rtx vec = gen_rtvec (2, pat, clobber);
+		      rtvec vec = gen_rtvec (2, pat, clobber);
 		      PATTERN (insn) = gen_rtx_PARALLEL (VOIDmode, vec);
 		      INSN_CODE (insn) = -1;
 		    }