diff options
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/ira-color.c | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e807957ff8a..f7812d24fc2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -33,6 +33,9 @@ * ira-conflicts.c (process_regs_for_copy, propagate_copies) build_allocno_conflicts): Use ira_parent_or_cap_allocno. + * ira-color.c (assign_hard_reg): Improve formatting of multi-line for + statement. + 2010-06-24 Richard Earnshaw <rearnsha@arm.com> * thumb2.md (thumb2_tlobits_cbranch): Delete. diff --git a/gcc/ira-color.c b/gcc/ira-color.c index b46801ce9a7..fe76749c2d0 100644 --- a/gcc/ira-color.c +++ b/gcc/ira-color.c @@ -485,9 +485,8 @@ assign_hard_reg (ira_allocno_t allocno, bool retry_p) #ifdef STACK_REGS no_stack_reg_p = no_stack_reg_p || ALLOCNO_TOTAL_NO_STACK_REG_P (a); #endif - for (cost = ALLOCNO_UPDATED_COVER_CLASS_COST (a), i = 0; - i < class_size; - i++) + cost = ALLOCNO_UPDATED_COVER_CLASS_COST (a); + for (i = 0; i < class_size; i++) if (a_costs != NULL) { costs[i] += a_costs[i]; |