Commit 686b2196 authored by Eli Zaretskii's avatar Eli Zaretskii

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.

Fixes: debbugs:18559
parent 39234ddb
2014-09-25 Eli Zaretskii <eliz@gnu.org>
* 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.
......
......@@ -286,7 +286,13 @@ error !;
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment