Author: Armin Rigo <[email protected]>
Branch: stmgc-c7
Changeset: r76031:9b0a5a4d6ba2
Date: 2015-02-21 17:50 +0100
http://bitbucket.org/pypy/pypy/changeset/9b0a5a4d6ba2/

Log:    fix

diff --git a/rpython/translator/c/src/debug_print.h 
b/rpython/translator/c/src/debug_print.h
--- a/rpython/translator/c/src/debug_print.h
+++ b/rpython/translator/c/src/debug_print.h
@@ -28,7 +28,13 @@
    XXX XXX this will set to zero the bits that were at one before
    the transaction started; the log will be truncated sometimes.
 */
-RPY_EXTERN struct pypy_ExcData0 pypy_g_ExcData;
+#ifdef RPY_STM
+#define __thread_if_stm  __thread
+#else
+#define __thread_if_stm  /* nothing */
+#endif
+
+RPY_EXTERN __thread struct pypy_ExcData0 pypy_g_ExcData;
 #define pypy_have_debug_prints    pypy_g_ExcData.ed_have_debug_prints
 
 /* macros used by the generated code */
@@ -51,12 +57,6 @@
 RPY_EXTERN long pypy_debug_offset(void);
 RPY_EXTERN void pypy_debug_forked(long original_offset);
 
-#ifdef RPY_STM
-#define __thread_if_stm  __thread
-#else
-#define __thread_if_stm  /* nothing */
-#endif
-
 RPY_EXTERN __thread_if_stm char pypy_debug_threadid[];
 RPY_EXPORTED FILE *pypy_debug_file;
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to