da746ae526
compiler included. Uses the boehm garbage collector. A big thanks goes to all who made devel/boehm-gc available. Modifying patches for a specific use is much easier than reinventing them! Note: I've marked this as i386-only, since it acted a little flacky on alpha and sparc. In theory support for at least those platforms supported by the garbage collector is possible. You are welcome to try.
25 lines
599 B
Text
25 lines
599 B
Text
$NetBSD: patch-bd,v 1.1.1.1 2000/01/10 22:09:15 pooka Exp $
|
|
|
|
--- gc/misc.c.orig Thu Oct 21 22:06:15 1999
|
|
+++ gc/misc.c Mon Jan 3 10:21:54 2000
|
|
@@ -58,6 +58,10 @@
|
|
# endif
|
|
# endif
|
|
|
|
+#if defined(NETBSD) && defined(__ELF__)
|
|
+void GC_init_netbsd_elf(void);
|
|
+#endif
|
|
+
|
|
GC_FAR struct _GC_arrays GC_arrays /* = { 0 } */;
|
|
|
|
|
|
@@ -430,6 +434,9 @@
|
|
# endif
|
|
# if defined(LINUX) && (defined(POWERPC) || defined(ALPHA) || defined(SPARC))
|
|
GC_init_linux_data_start();
|
|
+# endif
|
|
+# if defined(NETBSD) && defined(__ELF__)
|
|
+ GC_init_netbsd_elf();
|
|
# endif
|
|
# ifdef SOLARIS_THREADS
|
|
GC_thr_init();
|