From: Mikael Pettersson Date: Mon, 22 Aug 2011 09:38:14 +0000 (+0200) Subject: re PR bootstrap/50146 (unused variable saved_nregs in ira-color.c broke arm-linux... X-Git-Tag: releases/gcc-4.7.0~4340 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fbddb81da4ad58ed1cff9188ad02abf6f5334551;p=thirdparty%2Fgcc.git re PR bootstrap/50146 (unused variable saved_nregs in ira-color.c broke arm-linux-gnueabi bootstrap) PR bootstrap/50146 * ira-color.c (assign_hard_reg): Move saved_nregs declaration to #ifndef HONOR_REG_ALLOC_ORDER block. From-SVN: r177951 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4cf9a5f95f24..4793d031e4e2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-08-22 Mikael Pettersson + + 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 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN. diff --git a/gcc/ira-color.c b/gcc/ira-color.c index eb87b0e419b5..e78012b1f4a3 100644 --- a/gcc/ira-color.c +++ b/gcc/ira-color.c @@ -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