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]
Other format: [Raw text]

Patch for compiling ip2k.o


I tried adding ip2k-unknown-elf to my cross-compile test farm and it
died compiling ip2k.o because it referenced a varaible in a for-loop
that wasn't declared.  The patch below fixes it.  It still dies
linking cc1 but that's unrelated.

Ok to install?

		Thanks,
		--Kaveh


2002-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* ip2k.c (ip2k_set_compare): Add missing iteration variable.

diff -rup orig/egcc-CVS20020805/gcc/config/ip2k/ip2k.c egcc-CVS20020805/gcc/config/ip2k/ip2k.c
--- orig/egcc-CVS20020805/gcc/config/ip2k/ip2k.c	2002-06-30 15:27:48.000000000 -0400
+++ egcc-CVS20020805/gcc/config/ip2k/ip2k.c	2002-08-06 10:20:34.219282890 -0400
@@ -1090,6 +1090,7 @@ ip2k_set_compare (x, y)
   if (GET_MODE (x) == DImode && GET_CODE (y) == CONST_INT)
     {
       rtx value;
+      int i;
       
       value = rtx_alloc (CONST_DOUBLE);
       PUT_MODE (value, VOIDmode);



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