From 6300cb73c281c633428bad730b2db71843262a82 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Thu, 24 Jun 2010 23:28:35 +0000 Subject: [PATCH] ira-color.c (assign_hard_reg): Improve formatting of multi-line for statement. * ira-color.c (assign_hard_reg): Improve formatting of multi-line for statement. From-SVN: r161348 --- gcc/ChangeLog | 3 +++ 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 * 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]; -- 2.30.2