Patchwork Patch 4/9: minor formatting fix

login
register
mail settings
Submitter Bernd Schmidt
Date June 18, 2010, 2:07 p.m.
Message ID <4C1B7D90.1080805@codesourcery.com>
Download mbox | patch
Permalink /patch/56186/
State New
Headers show

Comments

Bernd Schmidt - June 18, 2010, 2:07 p.m.
A minor cleanup to make the code more readable.

	* ira-color.c (assign_hard_reg): Improve formatting of multi-line for
	statement.
Jeff Law - June 18, 2010, 2:08 p.m.
On 06/18/10 08:07, Bernd Schmidt wrote:
> A minor cleanup to make the code more readable.
>
>     * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
>     statement.
OK
Jeff

Patch

Index: gcc/ira-color.c
===================================================================
--- gcc.orig/ira-color.c
+++ gcc/ira-color.c
@@ -485,9 +485,8 @@  assign_hard_reg (ira_allocno_t allocno, 
 #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];