From 4648deb4187091b6d3c39c0108b5621fb895a7b2 Mon Sep 17 00:00:00 2001 From: Vladimir Makarov Date: Wed, 30 Mar 2011 16:09:33 +0000 Subject: [PATCH] ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'. 2011-03-30 Vladimir Makarov * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'. From-SVN: r171735 --- gcc/ChangeLog | 4 ++++ gcc/ira-color.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6f575e35dbc..d84d2b3956f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-03-30 Vladimir Makarov + + * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'. + 2011-03-30 Richard Sandiford PR rtl-optimization/48332 diff --git a/gcc/ira-color.c b/gcc/ira-color.c index c29367010ff..6c09dc3b1d4 100644 --- a/gcc/ira-color.c +++ b/gcc/ira-color.c @@ -1622,10 +1622,11 @@ assign_hard_reg (ira_allocno_t a, bool retry_p) if (hard_regno >= 0 && ira_class_hard_reg_index[aclass][hard_regno] >= 0) { - enum machine_mode mode = ALLOCNO_MODE (conflict_a); - int conflict_nregs = hard_regno_nregs[hard_regno][mode]; int n_objects = ALLOCNO_NUM_OBJECTS (conflict_a); + int conflict_nregs; + mode = ALLOCNO_MODE (conflict_a); + conflict_nregs = hard_regno_nregs[hard_regno][mode]; if (conflict_nregs == n_objects && conflict_nregs > 1) { int num = OBJECT_SUBWORD (conflict_obj); -- 2.30.2