patch for GC on powerpc-eabi

Geoff Keating geoffk@geoffk.org
Sun Dec 10 14:39:00 GMT 2000


This makes the automated tester more happy by adding configury for
boehm GC on powerpc-eabisim.  I hope to get this target fully working
once the CVS repository integration has progressed; this patch at
least lets the tree compile without switching on Java.

(It would probably be good if boehm could detect that there was
no OS support and just not build itself...  Maybe later.)

I'll be committing this, based on my ppc port maintainership.  I hope
I'm not treading on anyone's toes...

-- 
- Geoffrey Keating <geoffk@geoffk.org>

===File ~/patches/cygnus/java-eabigc.patch==================
2000-12-10  Geoffrey Keating  <geoffk@redhat.com>

	* gcconfig.h: Add new case for powerpc EABI.
	[PPC]: Handle embedded OS for powerpc simulator.

Index: gcconfig.h
===================================================================
RCS file: /cvs/gcc/gcc/boehm-gc/gcconfig.h,v
retrieving revision 1.14
diff -u -p -r1.14 gcconfig.h
--- gcconfig.h	2000/08/16 18:17:59	1.14
+++ gcconfig.h	2000/12/10 22:27:13
@@ -297,6 +297,10 @@
 #   endif
 #   define mach_type_known
 # endif
+# if defined(__embedded__) && defined(PPC)
+#    define POWERPC
+#    define mach_type_known
+# endif
 
 /* Feel free to add more clauses here */
 
@@ -572,6 +576,17 @@
 #     define DATASTART ((ptr_t) get_etext())
 #     define STACKBOTTOM ((ptr_t) 0xc0000000)
 #     define DATAEND	/* not needed */
+#   endif
+#   ifdef __embedded__
+#     define ALIGNMENT 4
+#     define OS_TYPE "EMBEDDED"
+      extern void __end, __dso_handle;
+#     define DATASTART (&__dso_handle)  /* OK, that's ugly.  */
+#     define DATAEND (&__end)
+	/* Stack starts at 0xE0000000 for the simulator.  */
+#     undef STACK_GRAN
+#     define STACK_GRAN 0x10000000
+#     define HEURISTIC1
 #   endif
 # endif
 
============================================================


More information about the Java-patches mailing list