OSDN Git Service

* haifa-sched.c (actual_hazard): Move declaration of variable
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Sep 1999 18:44:10 +0000 (18:44 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Sep 1999 18:44:10 +0000 (18:44 +0000)
       `this_cost' into the scope where it is used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29411 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/haifa-sched.c

index 1c46c17..336aaa8 100644 (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
index 079e290..52ce9be 100644 (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--)