1.0.41.44: runtime: Fix build on non-threaded x86oids.
authorAlastair Bridgewater <lisphacker@users.sourceforge.net>
Wed, 11 Aug 2010 14:59:01 +0000 (14:59 +0000)
committerAlastair Bridgewater <lisphacker@users.sourceforge.net>
Wed, 11 Aug 2010 14:59:01 +0000 (14:59 +0000)
  * In 1.0.41.21, I accidentally broke non-threaded x86oid builds.

  * Reported by Josh Elsasser and Bruce O'Neel with patches
provided, and Harald Hanche-Olsen without a patch.

  * This fix based on the patch by Josh Elsasser.

src/runtime/globals.c
src/runtime/globals.h
src/runtime/thread.h
version.lisp-expr

index 5c0cd1d..63d53ed 100644 (file)
@@ -26,7 +26,7 @@
 int foreign_function_call_active;
 #endif
 
-#if !defined(LISP_FEATURE_SB_THREAD) && !defined(LISP_FEATURE_C_STACK_IS_CONTROL_STACK)
+#if !defined(LISP_FEATURE_SB_THREAD)
 lispobj *current_control_stack_pointer;
 #endif
 #if defined(LISP_FEATURE_X86) || defined(LISP_FEATURE_X86_64) || !defined(LISP_FEATURE_SB_THREAD)
index e807eee..2c02ebe 100644 (file)
@@ -47,7 +47,7 @@ extern char **ENVIRON;
 extern pthread_key_t specials;
 #endif
 
-#if !defined(LISP_FEATURE_SB_THREAD) && !defined(LISP_FEATURE_C_STACK_IS_CONTROL_STACK)
+#if !defined(LISP_FEATURE_SB_THREAD)
 extern lispobj *current_control_stack_pointer;
 #endif
 #if defined(LISP_FEATURE_X86) || defined(LISP_FEATURE_X86_64) || !defined(LISP_FEATURE_SB_THREAD)
index e1765d7..3de5415 100644 (file)
@@ -188,6 +188,8 @@ StaticSymbolFunction(lispobj sym)
     SymbolValue(BINDING_STACK_POINTER, thread)
 #define set_binding_stack_pointer(thread,value) \
     SetSymbolValue(BINDING_STACK_POINTER, (lispobj)(value), thread)
+#define access_control_stack_pointer(thread)    \
+    (current_control_stack_pointer)
 #else
 #define get_binding_stack_pointer(thread)       \
     (current_binding_stack_pointer)
index efc894f..0e2c43a 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.41.43"
+"1.0.41.44"