diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 43477183249..20459333351 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-04-13 Vladimir Makarov + + PR rtl-optimization/48455 + * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of + `temp_costs->mem_cost'. + 2011-04-13 Jan Hubicka * ipa-inline.h: New file. diff --git a/gcc/ira-costs.c b/gcc/ira-costs.c index dd3123c0887..3b113b67da9 100644 --- a/gcc/ira-costs.c +++ b/gcc/ira-costs.c @@ -1663,10 +1663,10 @@ find_costs_and_classes (FILE *dump_file) } } if (equiv_savings < 0) - temp_costs->mem_cost = -equiv_savings; + i_mem_cost = -equiv_savings; else if (equiv_savings > 0) { - temp_costs->mem_cost = 0; + i_mem_cost = 0; for (k = cost_classes_ptr->num - 1; k >= 0; k--) i_costs[k] += equiv_savings; }