Patchwork PATCH: PR bootstrap/44921: [4.6 Regression] Failed to bootstrap

login
register
mail settings
Submitter H.J. Lu
Date July 13, 2010, 12:52 a.m.
Message ID <20100713005257.GA16793@intel.com>
Download mbox | patch
Permalink /patch/58696/
State New
Headers show

Comments

H.J. Lu - July 13, 2010, 12:52 a.m.
Hi,

I checked in this patch as an obvious fix to restore bootstrap.


H.J.
---

Patch

Index: postreload.c
===================================================================
--- postreload.c	(revision 162119)
+++ postreload.c	(working copy)
@@ -1281,7 +1281,7 @@  move2add_use_add3_insn (rtx reg, rtx sym
   rtx src = SET_SRC (pat);
   int regno = REGNO (reg);
   int min_cost = INT_MAX;
-  int min_regno;
+  int min_regno = 0;
   bool speed = optimize_bb_for_speed_p (BLOCK_FOR_INSN (insn));
   int i;
 
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 162119)
+++ ChangeLog	(working copy)
@@ -1,3 +1,9 @@ 
+2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR bootstrap/44921
+	* postreload.c (move2add_use_add3_insn): Silence gcc warning
+	on min_regno.
+
 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
 
 	* tree-vrp.c (simplify_bit_ops_using_ranges): New function.