[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r117951: Don't use USE_STACK_LISP_OBJECTS on Windows
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] trunk r117951: Don't use USE_STACK_LISP_OBJECTS on Windows with GCC older than 4.2. |
Date: |
Thu, 25 Sep 2014 17:49:40 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 117951
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/18559
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Thu 2014-09-25 20:49:02 +0300
message:
Don't use USE_STACK_LISP_OBJECTS on Windows with GCC older than 4.2.
src/lisp.h (USE_STACK_LISP_OBJECTS): Default to false for 32-bit
MinGW builds that use GCC before 4.2.
modified:
src/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1438
src/lisp.h lisp.h-20091113204419-o5vbwnq5f7feedwu-253
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2014-09-25 09:34:53 +0000
+++ b/src/ChangeLog 2014-09-25 17:49:02 +0000
@@ -1,5 +1,8 @@
2014-09-25 Eli Zaretskii <address@hidden>
+ * lisp.h (USE_STACK_LISP_OBJECTS): Default to false for 32-bit
+ MinGW builds that use GCC before 4.2.
+
Default to stack objects on DOS_NT platforms as well.
* w32term.h (ALIGN_STACK) [__GNUC__]: Define to
__attribute__((force_align_arg_pointer)) for GCC 4.2 and later.
=== modified file 'src/lisp.h'
--- a/src/lisp.h 2014-09-25 10:24:57 +0000
+++ b/src/lisp.h 2014-09-25 17:49:02 +0000
@@ -286,7 +286,13 @@
http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00506.html. */
#ifndef USE_STACK_LISP_OBJECTS
# if defined __GNUC__ && !defined __clang__
-# define USE_STACK_LISP_OBJECTS true
+ /* 32-bit MinGW builds need at least GCC 4.2 to support this. */
+# if defined __MINGW32__ && !defined _W64 \
+ && __GNUC__ + (__GNUC_MINOR__ > 1) < 5
+# define USE_STACK_LISP_OBJECTS false
+# else /* !(__MINGW32__ && __GNUC__ < 4.2) */
+# define USE_STACK_LISP_OBJECTS true
+# endif
# else
# define USE_STACK_LISP_OBJECTS false
# endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r117951: Don't use USE_STACK_LISP_OBJECTS on Windows with GCC older than 4.2.,
Eli Zaretskii <=