(GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
authorDave Love <fx@gnu.org>
Tue, 28 Mar 2000 16:17:31 +0000 (16:17 +0000)
committerDave Love <fx@gnu.org>
Tue, 28 Mar 2000 16:17:31 +0000 (16:17 +0000)
src/ChangeLog
src/s/gnu-linux.h

index 7d19133..a12f34a 100644 (file)
@@ -1,5 +1,8 @@
 2000-03-28  Dave Love  <fx@gnu.org>
 
+       * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
+       alpha.
+
        * alloc.c: Include stdio.h.  Test STDC_HEADERS, not __STDC__.
 
 2000-03-27  gerd  <gerd@dlpx1>
index e02f85d..8e39773 100644 (file)
@@ -327,3 +327,12 @@ Boston, MA 02111-1307, USA.  */
 #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