PATCH: Support Linux/mips in boehm-gc.

H . J . Lu hjl@lucon.org
Mon Jun 10 10:25:00 GMT 2002


On Mon, Jun 10, 2002 at 10:13:52AM -0700, Boehm, Hans wrote:
> I just checked it into the trunk.
> 
> The only potential risk I see with the patch is that someone concluded earlier that the the stack bottom value reported by the kernel on linux/mips was incorrect.  But hopefully that has been fixed in the meantime.  In any case, Java wasn't really usable on MIPS without this patch, so the risk is at most to the standalone collector, not to gcc.
> 

Thanks. I believe the current Linux mips kernel is ok now. Java is working
on Linux/mips with my patches:

http://gcc.gnu.org/ml/gcc-testresults/2002-06/msg00314.html

Here is a new patch which removes the unused code. 


H.J.
-------------- next part --------------
2002-06-10  H.J. Lu <hjl@gnu.org>

	* mach_dep.c (GC_push_regs): Remove the unused Linux/mips code.

--- boehm-gc/mach_dep.c.mips	Tue Feb 12 10:25:18 2002
+++ boehm-gc/mach_dep.c	Mon Jun 10 10:19:51 2002
@@ -81,23 +81,6 @@ void GC_push_regs()
 	  register long TMP_SP; /* must be bound to r11 */
 #       endif
 
-#       if defined(MIPS) && defined(LINUX)
-	  /* I'm not sure whether this has actually been tested. */
-#         define call_push(x)     asm("move $4," x ";"); asm("jal GC_push_one")
-	  call_push("$2");
-	  call_push("$3");
-	  call_push("$16");
-	  call_push("$17");
-	  call_push("$18");
-	  call_push("$19");
-	  call_push("$20");
-	  call_push("$21");
-	  call_push("$22");
-	  call_push("$23");
-	  call_push("$30");
-#         undef call_push
-#       endif	/* MIPS && LINUX */
-
 #       ifdef VAX
 	  /* VAX - generic code below does not work under 4.2 */
 	  /* r1 through r5 are caller save, and therefore     */


More information about the Gcc-patches mailing list