Patch 4/9: minor formatting fix

Submitted by Bernd Schmidt on June 18, 2010, 2:07 p.m.

Details

Message ID 4C1B7D90.1080805@codesourcery.com
State New
Headers show

Commit Message

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.

Comments

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 hide | download patch | download mbox

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];