This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Hi,

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


H.J.
---
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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]