[pypy-svn] r68146 - pypy/trunk/pypy/translator/c/gcc

arigo at codespeak.net arigo at codespeak.net
Sun Oct 4 18:48:01 CEST 2009


Author: arigo
Date: Sun Oct  4 18:48:01 2009
New Revision: 68146

Modified:
   pypy/trunk/pypy/translator/c/gcc/trackgcroot.py
Log:
Support strange labels reported by NickDaly by supporting
the full label syntax of 'as', plus the @ sign which is
apparently Mac OS/X-specific.


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	Sun Oct  4 18:48:01 2009
@@ -25,7 +25,7 @@
 OFFSET_LABELS   = 2**30
 
 # inside functions
-LABEL           = r'([.]?[\w$@]+)'
+LABEL           = r'([a-zA-Z_$.][a-zA-Z0-9_$@.]*)'
 r_label         = re.compile(LABEL+"[:]\s*$")
 r_globl         = re.compile(r"\t[.]globl\t(\w+)\s*$")
 r_globllabel    = re.compile(LABEL+r"=[.][+]%d\s*$"%OFFSET_LABELS)



More information about the Pypy-commit mailing list