]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix 32-bit Cygwin builds with libjit
authorKen Brown <kbrown@cornell.edu>
Mon, 27 Aug 2018 14:03:54 +0000 (10:03 -0400)
committerKen Brown <kbrown@cornell.edu>
Mon, 27 Aug 2018 14:03:54 +0000 (10:03 -0400)
* src/lisp.h (USE_STACK_LISP_OBJECTS): Define to false for
32-bit Cygwin builds with libjit.

src/lisp.h

index 67fa18eaa3cd764694af6ee3bcc05acc4becc001..0a13f779c21caea17e766d3939ea67ba0686f306 100644 (file)
@@ -4633,11 +4633,12 @@ safe_free_unbind_to (ptrdiff_t count, ptrdiff_t sa_count, Lisp_Object val)
 #if (!defined USE_STACK_LISP_OBJECTS \
      && defined __GNUC__ && !defined __clang__                         \
      && (! GNUC_PREREQ (4, 3, 2)                                       \
-        || (defined __MINGW32__ && INTPTR_MAX <= INT_MAX && HAVE_LIBJIT)))
+        || ((defined __MINGW32__ || defined CYGWIN)                    \
+            && INTPTR_MAX <= INT_MAX && HAVE_LIBJIT)))
   /* Work around GCC bugs 36584 and 35271, which were fixed in GCC 4.3.2.
-     Using libjit in 32-bit MS-Windows builds cannot ensure proper stack
-     alignment when JIT code calls back into Emacs, so disable stack-based
-     objects.  */
+     Using libjit in 32-bit MS-Windows or Cygwin builds cannot ensure
+     proper stack alignment when JIT code calls back into Emacs, so
+     disable stack-based objects.  */
 # define USE_STACK_LISP_OBJECTS false
 #endif
 #ifndef USE_STACK_LISP_OBJECTS