diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2010-06-24 23:28:35 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2010-06-24 23:28:35 +0000 |
commit | 6300cb73c281c633428bad730b2db71843262a82 (patch) | |
tree | 0ecedd6131c31a8a9aa1b4e685e05b753fcd9658 | |
parent | 029da7d4c4d254bab10530df618ac6af91707876 (diff) | |
download | gcc-6300cb73c281c633428bad730b2db71843262a82.tar.gz |
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
-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]; |