haifa-sched.c (actual_hazard): Move declaration of variable `this_cost' into the scope where it is used.

* haifa-sched.c (actual_hazard): Move declaration of variable
       `this_cost' into the scope where it is used.

From-SVN: r29411
This commit is contained in:
Kaveh R. Ghazi 1999-09-14 18:44:10 +00:00 committed by Kaveh Ghazi
parent 341a243eaf
commit 1eda7a81d3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Tue Sep 14 14:41:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* haifa-sched.c (actual_hazard): Move declaration of variable
`this_cost' into the scope where it is used.
Tue Sep 14 14:14:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* c-pragma.c (handle_pragma_token): Wrap variables `name' and

View File

@ -2950,9 +2950,9 @@ actual_hazard (unit, insn, clock, cost)
int instance = unit;
int best_cost = actual_hazard_this_instance (unit, instance, insn,
clock, cost);
#if MAX_MULTIPLICITY > 1
int this_cost;
#if MAX_MULTIPLICITY > 1
if (best_cost > cost)
{
for (i = function_units[unit].multiplicity - 1; i > 0; i--)