]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR bootstrap/50146 (unused variable saved_nregs in ira-color.c broke arm-linux...
authorMikael Pettersson <mikpe@it.uu.se>
Mon, 22 Aug 2011 09:38:14 +0000 (11:38 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 22 Aug 2011 09:38:14 +0000 (11:38 +0200)
PR bootstrap/50146
* ira-color.c (assign_hard_reg): Move saved_nregs declaration
to #ifndef HONOR_REG_ALLOC_ORDER block.

From-SVN: r177951

gcc/ChangeLog
gcc/ira-color.c

index 4cf9a5f95f249a95fb61a0373154e39f76896be5..4793d031e4e29c347570f141125cc82e30c23880 100644 (file)
@@ -1,3 +1,9 @@
+2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
+
+       PR bootstrap/50146
+       * ira-color.c (assign_hard_reg): Move saved_nregs declaration
+       to #ifndef HONOR_REG_ALLOC_ORDER block.
+
 2011-08-21  Richard Henderson  <rth@redhat.com>
 
        * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
index eb87b0e419b5459edfe12efe527a6ada793edd0f..e78012b1f4a39597b28bf1650109c55aa4d5f562 100644 (file)
@@ -1567,13 +1567,14 @@ static bool
 assign_hard_reg (ira_allocno_t a, bool retry_p)
 {
   HARD_REG_SET conflicting_regs[2], profitable_hard_regs[2];
-  int i, j, hard_regno, best_hard_regno, class_size, saved_nregs;
+  int i, j, hard_regno, best_hard_regno, class_size;
   int cost, mem_cost, min_cost, full_cost, min_full_cost, nwords, word;
   int *a_costs;
   enum reg_class aclass;
   enum machine_mode mode;
   static int costs[FIRST_PSEUDO_REGISTER], full_costs[FIRST_PSEUDO_REGISTER];
 #ifndef HONOR_REG_ALLOC_ORDER
+  int saved_nregs;
   enum reg_class rclass;
   int add_cost;
 #endif