Commit 004a6ce8 by Eric Botcazou Committed by Eric Botcazou

re PR bootstrap/37424 (IRA merge breaks Solaris/SPARC bootstrap)

	PR rtl-optimization/37424
	* ira-color.c (coalesced_pseudo_reg_slot_compare): Untie by comparing
	the regnos instead of the addresses.

From-SVN: r140312
parent 7d6c3ecb
2008-09-12 Eric Botcazou <ebotcazou@adacore.com>
PR rtl-optimization/37424
* ira-color.c (coalesced_pseudo_reg_slot_compare): Untie by comparing
the regnos instead of the addresses.
2008-09-11 Janis Johnson <janis187@us.ibm.com> 2008-09-11 Janis Johnson <janis187@us.ibm.com>
* ginclude/float.h (DEC_EVAL_METHOD): Correct the macro name. * ginclude/float.h (DEC_EVAL_METHOD): Correct the macro name.
......
...@@ -2171,7 +2171,7 @@ coalesced_pseudo_reg_slot_compare (const void *v1p, const void *v2p) ...@@ -2171,7 +2171,7 @@ coalesced_pseudo_reg_slot_compare (const void *v1p, const void *v2p)
if (a1 == NULL || ALLOCNO_HARD_REGNO (a1) >= 0) if (a1 == NULL || ALLOCNO_HARD_REGNO (a1) >= 0)
{ {
if (a2 == NULL || ALLOCNO_HARD_REGNO (a2) >= 0) if (a2 == NULL || ALLOCNO_HARD_REGNO (a2) >= 0)
return (const int *) v1p - (const int *) v2p; /* Save the order. */ return regno1 - regno2;
return 1; return 1;
} }
else if (a2 == NULL || ALLOCNO_HARD_REGNO (a2) >= 0) else if (a2 == NULL || ALLOCNO_HARD_REGNO (a2) >= 0)
...@@ -2185,7 +2185,7 @@ coalesced_pseudo_reg_slot_compare (const void *v1p, const void *v2p) ...@@ -2185,7 +2185,7 @@ coalesced_pseudo_reg_slot_compare (const void *v1p, const void *v2p)
total_size2 = MAX (PSEUDO_REGNO_BYTES (regno2), regno_max_ref_width[regno2]); total_size2 = MAX (PSEUDO_REGNO_BYTES (regno2), regno_max_ref_width[regno2]);
if ((diff = total_size2 - total_size1) != 0) if ((diff = total_size2 - total_size1) != 0)
return diff; return diff;
return (const int *) v1p - (const int *) v2p; /* Save the order. */ return regno1 - regno2;
} }
/* Setup REGNO_COALESCED_ALLOCNO_COST and REGNO_COALESCED_ALLOCNO_NUM /* Setup REGNO_COALESCED_ALLOCNO_COST and REGNO_COALESCED_ALLOCNO_NUM
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment