This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: PR bootstrap/44921: [4.6 Regression] Failed to bootstrap
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 12 Jul 2010 17:52:58 -0700
- Subject: PATCH: PR bootstrap/44921: [4.6 Regression] Failed to bootstrap
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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.