diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-09-14 18:44:10 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-09-14 18:44:10 +0000 |
commit | 1eda7a81d32968f3112b6e7b1fc67ffbf7c8c35a (patch) | |
tree | c362ebe22b2d565ccbe54e4a92659151fac4e6f9 /gcc | |
parent | 341a243eaf86f5e0e1534698240cf215794f4771 (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/haifa-sched.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1c46c17..336aaa8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 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--) |