Author: Armin Rigo <[email protected]>
Branch: c7-refactor
Changeset: r774:8837b8f858b1
Date: 2014-02-19 07:36 +0100
http://bitbucket.org/pypy/stmgc/changeset/8837b8f858b1/
Log: Workaround for llvm bug. :-/
diff --git a/c7/stm/core.h b/c7/stm/core.h
--- a/c7/stm/core.h
+++ b/c7/stm/core.h
@@ -119,3 +119,7 @@
static void teardown_core(void);
static void abort_with_mutex(void) __attribute__((noreturn));
+
+static inline void _duck(void) {
+ asm("/* workaround for llvm bug */");
+}
diff --git a/c7/stm/pages.c b/c7/stm/pages.c
--- a/c7/stm/pages.c
+++ b/c7/stm/pages.c
@@ -189,7 +189,7 @@
dataofs += 256;
}
}
- p[0] = 0;
+ p[0] = 0; _duck();
p[1] = 0;
p += 2;
}
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit