This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: convert scheduler to target hooks, again


 > +static int
 > +sparc_variable_issue (dump, sched_verbose, insn, cim)
 > +     FILE *dump ATTRIBUTE_UNUSED;
 > +     int sched_verbose ATTRIBUTE_UNUSED;
 > +     rtx insn;
 > +     int cim;
 > +{
 > +  if (sparc_cpu == PROCESSOR_ULTRASPARC)
 > +    return ultrasparc_variable_issue (INSN);
 > +  else
 > +    return cim - 1;
 > +}

Zack - your recent patch to sparc.c provoked this warning:

sparc.c:7758: warning: passing arg 1 of `ultrasparc_variable_issue'
	      makes pointer from integer without a cast



Does this patch get to what you meant?


2001-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* sparc.c (sparc_variable_issue): Fix typo in last change.

diff -rup orig/egcs-CVS20010819/gcc/config/sparc/sparc.c egcs-CVS20010819/gcc/config/sparc/sparc.c
--- orig/egcs-CVS20010819/gcc/config/sparc/sparc.c	Sat Aug 18 16:30:30 2001
+++ egcs-CVS20010819/gcc/config/sparc/sparc.c	Sun Aug 19 10:13:56 2001
@@ -7755,7 +7755,7 @@ sparc_variable_issue (dump, sched_verbos
      int cim;
 {
   if (sparc_cpu == PROCESSOR_ULTRASPARC)
-    return ultrasparc_variable_issue (INSN);
+    return ultrasparc_variable_issue (insn);
   else
     return cim - 1;
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]