From: Kaveh R. Ghazi Date: Tue, 14 Sep 1999 18:44:10 +0000 (+0000) Subject: haifa-sched.c (actual_hazard): Move declaration of variable `this_cost' into the... X-Git-Tag: prereleases/libstdc++-2.92~10604 X-Git-Url: https://gcc.gnu.org/git/?a=commitdiff_plain;h=1eda7a81d32968f3112b6e7b1fc67ffbf7c8c35a;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1c46c17af099..336aaa80e979 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue Sep 14 14:41:47 1999 Kaveh R. Ghazi + + * 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 * c-pragma.c (handle_pragma_token): Wrap variables `name' and diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 079e290c3339..52ce9be26bed 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -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--)