Patchwork [ARM,committed] Fix PR 44820

login
register
mail settings
Submitter Jie Zhang
Date July 5, 2010, 9:20 a.m.
Message ID <4C31A3DA.6020202@codesourcery.com>
Download mbox | patch
Permalink /patch/57882/
State New
Headers show

Comments

Jie Zhang - July 5, 2010, 9:20 a.m.
One of my last changes caused a GCC bootstrap failure for ARM. Mikael 
reported it as PR 44820 and kindly attached a patch in the bugzilla. I 
have committed his patch under the obvious rule. The patch is also 
attached in this email. Mikael, thanks!

Patch

gcc/

2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>

	PR bootstrap/44820
	* config/arm/arm.c (arm_attr_length_move_neon): Delete regno.

--- gcc-4.6-20100703/gcc/config/arm/arm.c.~1~	2010-07-03 18:49:05.000000000 +0200
+++ gcc-4.6-20100703/gcc/config/arm/arm.c	2010-07-05 10:34:19.000000000 +0200
@@ -12865,7 +12865,7 @@  int
 arm_attr_length_move_neon (rtx insn)
 {
   rtx reg, mem, addr;
-  int regno, load;
+  int load;
   enum machine_mode mode;
 
   extract_insn_cached (insn);
@@ -12894,7 +12894,6 @@  arm_attr_length_move_neon (rtx insn)
   gcc_assert (MEM_P (mem));
 
   mode = GET_MODE (reg);
-  regno = REGNO (reg);
   addr = XEXP (mem, 0);
 
   /* Strip off const from addresses like (const (plus (...))).  */