[pypy-commit] pypy stmgc-c7: merge heads
arigo
noreply at buildbot.pypy.org
Sat Feb 21 18:32:42 CET 2015
Author: Armin Rigo <arigo at tunes.org>
Branch: stmgc-c7
Changeset: r76032:47e4c4e0ffbd
Date: 2015-02-21 17:51 +0100
http://bitbucket.org/pypy/pypy/changeset/47e4c4e0ffbd/
Log: merge heads
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;
More information about the pypy-commit
mailing list