aboutsummaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-09-14 18:44:10 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-09-14 18:44:10 +0000
commit1eda7a81d32968f3112b6e7b1fc67ffbf7c8c35a (patch)
treec362ebe22b2d565ccbe54e4a92659151fac4e6f9 /gcc/haifa-sched.c
parent341a243eaf86f5e0e1534698240cf215794f4771 (diff)
downloadgcc-1eda7a81d32968f3112b6e7b1fc67ffbf7c8c35a.zip
gcc-1eda7a81d32968f3112b6e7b1fc67ffbf7c8c35a.tar.gz
gcc-1eda7a81d32968f3112b6e7b1fc67ffbf7c8c35a.tar.bz2
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
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r--gcc/haifa-sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index 079e290..52ce9be 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--)