This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch checked in for warning nit in haifa-sched.c
- To: egcs-patches at egcs dot cygnus dot com
- Subject: Patch checked in for warning nit in haifa-sched.c
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Tue, 14 Sep 1999 14:45:23 -0400 (EDT)
Found this one on Irix6:
../../egcs-CVS19990913/gcc/haifa-sched.c: In function `actual_hazard':
../../egcs-CVS19990913/gcc/haifa-sched.c:2953: warning: unused
variable `this_cost'
Patch checked in.
--Kaveh
Index: ChangeLog
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/ChangeLog,v
retrieving revision 1.4390
diff -u -p -r1.4390 ChangeLog
--- ChangeLog 1999/09/14 18:19:00 1.4390
+++ ChangeLog 1999/09/14 18:42:42
@@ -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: haifa-sched.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/haifa-sched.c,v
retrieving revision 1.106
diff -u -p -r1.106 haifa-sched.c
--- haifa-sched.c 1999/09/08 15:44:16 1.106
+++ haifa-sched.c 1999/09/14 18:42:47
@@ -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--)