From: Glenn Morris Date: Wed, 11 Jul 2012 18:39:44 +0000 (-0400) Subject: Trivial re-ordering and comment updating X-Git-Tag: emacs-24.2.90~1199^2~54 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e091e1bd02f2c05966e5c735858ebec43daef40b;p=emacs.git Trivial re-ordering and comment updating --- diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index b4031bb1ca4..583a5c5de21 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h @@ -87,20 +87,6 @@ along with GNU Emacs. If not, see . */ #define NARROWPROTO 1 -/* Tell that garbage collector that setjmp is known to save all - registers relevant for conservative garbage collection in the jmp_buf. */ -/* Not all the architectures are tested, but there are Debian packages - for SCM and/or Guile on them, so the technique must work. See also - comments in alloc.c concerning setjmp and gcc. Fixme: it's - probably safe to make this conditional just on GCC, except for ia64 - register window-flushing. */ -/* Don't use #cpu here since in newest development versions of GCC, - we must call cpp with -traditional, and that disables #cpu. */ -#if defined __i386__ || defined __sparc__ || defined __mc68000__ \ - || defined __alpha__ || defined __mips__ || defined __s390__ \ - || defined __arm__ || defined __powerpc__ || defined __amd64__ \ - || defined __ia64__ || defined __sh__ -#define GC_SETJMP_WORKS 1 #ifdef __ia64__ #define GC_MARK_SECONDARY_STACK() \ do { \ @@ -110,6 +96,19 @@ along with GNU Emacs. If not, see . */ __builtin_ia64_bsp ()); \ } while (0) #endif + +/* Tell that garbage collector that setjmp is known to save all + registers relevant for conservative garbage collection in the jmp_buf. + Not all the architectures are tested, but there are Debian packages + for SCM and/or Guile on them, so the technique must work. See also + comments in alloc.c concerning setjmp and gcc. Fixme: it's + probably safe to just let the GCC conditional in AH_BOTTOM handle this. +*/ +#if defined __i386__ || defined __sparc__ || defined __mc68000__ \ + || defined __alpha__ || defined __mips__ || defined __s390__ \ + || defined __arm__ || defined __powerpc__ || defined __amd64__ \ + || defined __ia64__ || defined __sh__ +#define GC_SETJMP_WORKS 1 #else #define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE #endif