]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Silence gcc warning on min_regno.
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 13 Jul 2010 00:51:43 +0000 (00:51 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 13 Jul 2010 00:51:43 +0000 (17:51 -0700)
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.

From-SVN: r162120

gcc/ChangeLog
gcc/postreload.c

index 0652932b5f9f05c81fc465689c2d37f558665312..2e537022daa213d66a67eeb3bf6179ace2fc85b2 100644 (file)
@@ -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 116c9c433e2f3c9e20aca1f27b940588c7f21978..3c493960be3bf713a3d365a1e45dcca0a83b81e2 100644 (file)
@@ -1281,7 +1281,7 @@ move2add_use_add3_insn (rtx reg, rtx sym, rtx off, rtx insn)
   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;