Author: Armin Rigo <[email protected]>
Branch: stmgc-c4
Changeset: r66824:14394c24ac4d
Date: 2013-09-06 22:28 +0200
http://bitbucket.org/pypy/pypy/changeset/14394c24ac4d/
Log: Make the __thread in these files only appear in stm mode.
diff --git a/rpython/translator/c/src/rtyper.c
b/rpython/translator/c/src/rtyper.c
--- a/rpython/translator/c/src/rtyper.c
+++ b/rpython/translator/c/src/rtyper.c
@@ -9,7 +9,13 @@
#include <stdlib.h>
#include <string.h>
-__thread struct _RPyString_dump_t {
+#ifdef RPY_STM
+#define __thread_if_stm __thread
+#else
+#define __thread_if_stm /* nothing */
+#endif
+
+__thread_if_stm struct _RPyString_dump_t {
struct _RPyString_dump_t *next;
char data[1];
} *_RPyString_dump = NULL;
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit