]> code.delx.au - gnu-emacs/commitdiff
Port to x86 GCC 4.3.1 and earlier
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 14 Feb 2016 19:19:39 +0000 (11:19 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 14 Feb 2016 19:23:52 +0000 (11:23 -0800)
This tries to port to x86 FreeBSD 9, where Emacs dumps core (Bug#22065).
* src/lisp.h (USE_STACK_LISP_OBJECTS): Default to false
for GCC 4.3.1 and earlier.

src/lisp.h

index af73c4b15ce808726af5ff3bcf147974a39aab8c..8eb18e11870541010244ad4b65db984ebb24283f 100644 (file)
@@ -4522,6 +4522,11 @@ extern void *record_xmalloc (size_t) ATTRIBUTE_ALLOC_SIZE ((1));
    This feature is experimental and requires careful debugging.
    Build with CPPFLAGS='-DUSE_STACK_LISP_OBJECTS=0' to disable it.  */
 
+#if (!defined USE_STACK_LISP_OBJECTS && defined __GNUC__ \
+     && !(4 < __GNUC__ + (3 < __GNUC_MINOR__ + (2 <= __GNUC_PATCHLEVEL__))))
+  /* Work around GCC bugs 36584 and 35271, which were fixed in GCC 4.3.2.  */
+# define USE_STACK_LISP_OBJECTS false
+#endif
 #ifndef USE_STACK_LISP_OBJECTS
 # define USE_STACK_LISP_OBJECTS true
 #endif