emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 f3aaca3: Port USE_STACK_LISP_OBJECTS fix to Clang


From: Paul Eggert
Subject: [Emacs-diffs] emacs-25 f3aaca3: Port USE_STACK_LISP_OBJECTS fix to Clang
Date: Sun, 14 Feb 2016 19:43:08 +0000

branch: emacs-25
commit f3aaca3552ba961d13cd1ee935c1c6b075f2398a
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Port USE_STACK_LISP_OBJECTS fix to Clang
    
    * src/lisp.h (USE_STACK_LISP_OBJECTS): Default to false for Clang.
    Recent versions of Clang claim to be GCC 4.2.1 but do not have
    the GCC bug.
---
 src/lisp.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/lisp.h b/src/lisp.h
index 8eb18e1..8eab38b 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -4522,7 +4522,8 @@ 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__ \
+#if (!defined USE_STACK_LISP_OBJECTS \
+     && defined __GNUC__ && !defined __clang__ \
      && !(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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]