changeset 28378:65fca17fb602

(GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
author Dave Love <fx@gnu.org>
date Tue, 28 Mar 2000 16:15:43 +0000
parents 6c44cf5cbba7
children b3a689c74cde
files src/s/gnu-linux.h
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/s/gnu-linux.h	Tue Mar 28 11:29:31 2000 +0000
+++ b/src/s/gnu-linux.h	Tue Mar 28 16:15:43 2000 +0000
@@ -327,3 +327,12 @@
 #ifdef DOUG_LEA_MALLOC
 #undef REL_ALLOC
 #endif
+
+/* Tell that garbage collector that setjmp is known to save all
+   registers relevant for conservative garbage collection in the
+   jmp_buf.  */
+/* m68k and alpha aren't tested, but there are Debian packages for SCM
+   and/or Guile on them, so the technique must work.  */
+#if #cpu (i386) || #cpu (sparc) || #cpu (m68k) || #cpu (alpha)
+#define GC_SETJMP_WORKS 1
+#endif