[pypy-svn] r67703 - in pypy/branch/asmgcroot-callback/pypy/translator/c: gcc src
arigo at codespeak.net
arigo at codespeak.net
Tue Sep 15 20:02:09 CEST 2009
Author: arigo
Date: Tue Sep 15 20:02:09 2009
New Revision: 67703
Modified:
pypy/branch/asmgcroot-callback/pypy/translator/c/gcc/trackgcroot.py
pypy/branch/asmgcroot-callback/pypy/translator/c/src/mem.h
Log:
Fix.
Modified: pypy/branch/asmgcroot-callback/pypy/translator/c/gcc/trackgcroot.py
==============================================================================
--- pypy/branch/asmgcroot-callback/pypy/translator/c/gcc/trackgcroot.py (original)
+++ pypy/branch/asmgcroot-callback/pypy/translator/c/gcc/trackgcroot.py Tue Sep 15 20:02:09 2009
@@ -144,9 +144,6 @@
print >> output, '\t/* the ASM_FRAMEDATAs currently alive */'
print >> output, '\t.long\t__gcrootanchor /* prev */'
print >> output, '\t.long\t__gcrootanchor /* next */'
- _globl('__gcstackscount')
- _label('__gcstackscount')
- print >> output, '\t.long\t1'
_globl('__gcmapstart')
_label('__gcmapstart')
for label, state, is_range in self.gcmaptable:
Modified: pypy/branch/asmgcroot-callback/pypy/translator/c/src/mem.h
==============================================================================
--- pypy/branch/asmgcroot-callback/pypy/translator/c/src/mem.h (original)
+++ pypy/branch/asmgcroot-callback/pypy/translator/c/src/mem.h Tue Sep 15 20:02:09 2009
@@ -25,6 +25,10 @@
extern long pypy_asm_stackwalk(void*);
#define __gcnoreorderhack __gcmapend
+#ifndef PYPY_NOT_MAIN_FILE
+long __gcstackscount = 1;
+#endif
+
/* The following pseudo-instruction is used by --gcrootfinder=asmgcc
just after a call to tell gcc to put a GCROOT mark on each gc-pointer
local variable. All such local variables need to go through a "v =
More information about the Pypy-commit
mailing list