aboutsummaryrefslogtreecommitdiffstats
path: root/src/s/gnu-linux.h
diff options
context:
space:
mode:
authorGlenn Morris2012-07-13 20:04:10 -0400
committerGlenn Morris2012-07-13 20:04:10 -0400
commit5b3f250f88e2bf2abd8b5af553b7643d3cdcc782 (patch)
treeb9b19f2d8ebbbdc59409e5ea32626881b2aca2c7 /src/s/gnu-linux.h
parent5b63334279790dfee1da5a7ffb83630fb8202a87 (diff)
downloademacs-5b3f250f88e2bf2abd8b5af553b7643d3cdcc782.tar.gz
emacs-5b3f250f88e2bf2abd8b5af553b7643d3cdcc782.zip
Move GC_SETJMP_WORKS, GC_MARK_STACK from src/s to configure
* configure.ac (GC_SETJMP_WORKS, GC_MARK_STACK): Move here from src/s. (AH_BOTTOM): Move GC_SETJMP_WORKS GCC fallback to main body. * src/s/aix4-2.h, src/s/freebsd.h, src/s/gnu-linux.h, src/s/hpux10-20.h: * src/s/irix6-5.h, src/s/netbsd.h, src/s/sol2-6.h, src/s/unixware.h: Let configure set GC_SETJMP_WORKS, GC_MARK_STACK.
Diffstat (limited to 'src/s/gnu-linux.h')
-rw-r--r--src/s/gnu-linux.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
index 0a083fe3f15..2847fd6d19c 100644
--- a/src/s/gnu-linux.h
+++ b/src/s/gnu-linux.h
@@ -20,18 +20,3 @@ GNU General Public License for more details.
20You should have received a copy of the GNU General Public License 20You should have received a copy of the GNU General Public License
21along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 21along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
22 22
23/* Tell that garbage collector that setjmp is known to save all
24 registers relevant for conservative garbage collection in the jmp_buf.
25 Not all the architectures are tested, but there are Debian packages
26 for SCM and/or Guile on them, so the technique must work. See also
27 comments in alloc.c concerning setjmp and gcc. Fixme: it's
28 probably safe to just let the GCC conditional in AH_BOTTOM handle this.
29*/
30#if defined __i386__ || defined __sparc__ || defined __mc68000__ \
31 || defined __alpha__ || defined __mips__ || defined __s390__ \
32 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
33 || defined __ia64__ || defined __sh__
34#define GC_SETJMP_WORKS 1
35#else
36#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE
37#endif