Commit a5c011cd by Mikael Pettersson Committed by Bernd Schmidt

re PR bootstrap/43964 (4.6-20100501 (r158965) bootstrap failure on ARM,…

re PR bootstrap/43964 (4.6-20100501 (r158965) bootstrap failure on ARM, ira-color.c triggers -Werror)

	PR bootstrap/43964
	* ira-color.c (assign_hard_reg): Declare rclass and add_cost
	only if HONOR_REG_ALLOC_ORDER is not defined.

From-SVN: r159022
parent 622d360e
2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
PR bootstrap/43964
* ira-color.c (assign_hard_reg): Declare rclass and add_cost
only if HONOR_REG_ALLOC_ORDER is not defined.
2010-05-04 Richard Guenther <rguenther@suse.de> 2010-05-04 Richard Guenther <rguenther@suse.de>
PR tree-optimization/43949 PR tree-optimization/43949
......
...@@ -441,14 +441,18 @@ assign_hard_reg (ira_allocno_t allocno, bool retry_p) ...@@ -441,14 +441,18 @@ assign_hard_reg (ira_allocno_t allocno, bool retry_p)
{ {
HARD_REG_SET conflicting_regs; HARD_REG_SET conflicting_regs;
int i, j, k, hard_regno, best_hard_regno, class_size; int i, j, k, hard_regno, best_hard_regno, class_size;
int cost, mem_cost, min_cost, full_cost, min_full_cost, add_cost; int cost, mem_cost, min_cost, full_cost, min_full_cost;
int *a_costs; int *a_costs;
int *conflict_costs; int *conflict_costs;
enum reg_class cover_class, rclass, conflict_cover_class; enum reg_class cover_class, conflict_cover_class;
enum machine_mode mode; enum machine_mode mode;
ira_allocno_t a, conflict_allocno; ira_allocno_t a, conflict_allocno;
ira_allocno_conflict_iterator aci; ira_allocno_conflict_iterator aci;
static int costs[FIRST_PSEUDO_REGISTER], full_costs[FIRST_PSEUDO_REGISTER]; static int costs[FIRST_PSEUDO_REGISTER], full_costs[FIRST_PSEUDO_REGISTER];
#ifndef HONOR_REG_ALLOC_ORDER
enum reg_class rclass;
int add_cost;
#endif
#ifdef STACK_REGS #ifdef STACK_REGS
bool no_stack_reg_p; bool no_stack_reg_p;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment