[pypy-svn] r68943 - pypy/trunk/pypy/translator/c/gcc
arigo at codespeak.net
arigo at codespeak.net
Tue Nov 3 17:03:55 CET 2009
Author: arigo
Date: Tue Nov 3 17:03:55 2009
New Revision: 68943
Modified:
pypy/trunk/pypy/translator/c/gcc/trackgcroot.py
Log:
In VALGRIND_XXX functions, there is a dummy-looking mov %esp, %eax.
Shows up only when compiling with gcc -fno-unit-at-a-time.
Modified: pypy/trunk/pypy/translator/c/gcc/trackgcroot.py
==============================================================================
--- pypy/trunk/pypy/translator/c/gcc/trackgcroot.py (original)
+++ pypy/trunk/pypy/translator/c/gcc/trackgcroot.py Tue Nov 3 17:03:55 2009
@@ -715,6 +715,10 @@
return self._visit_prologue()
elif source == '%ebp' and target == '%esp':
return self._visit_epilogue()
+ if source == '%esp' and self.funcname.startswith('VALGRIND_'):
+ return [] # in VALGRIND_XXX functions, there is a dummy-looking
+ # mov %esp, %eax. Shows up only when compiling with
+ # gcc -fno-unit-at-a-time.
return self.insns_for_copy(source, target)
def visit_pushl(self, line):
More information about the Pypy-commit
mailing list