[pypy-commit] pypy stmgc-c4: Make the __thread in these files only appear in stm mode.
arigo
noreply at buildbot.pypy.org
Fri Sep 6 22:31:36 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
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;
More information about the pypy-commit
mailing list