[pypy-svn] r79536 - in pypy/trunk/pypy/translator: c/gcc platform

antocuni at codespeak.net antocuni at codespeak.net
Fri Nov 26 10:58:33 CET 2010


Author: antocuni
Date: Fri Nov 26 10:58:31 2010
New Revision: 79536

Modified:
   pypy/trunk/pypy/translator/c/gcc/trackgcroot.py
   pypy/trunk/pypy/translator/platform/darwin.py
Log:
(mvt) fix os/x 64 bit translation


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	Fri Nov 26 10:58:31 2010
@@ -1106,7 +1106,7 @@
     format = 'darwin64'
     function_names_prefix = '_'
 
-    LABEL = ElfFunctionGcRootTracker32.LABEL
+    LABEL = ElfFunctionGcRootTracker64.LABEL
     r_jmptable_item = re.compile(r"\t.(?:long|quad)\t"+LABEL+"(-\"?[A-Za-z0-9$]+\"?)?\s*$")
 
     r_functionstart = re.compile(r"_(\w+):\s*$")

Modified: pypy/trunk/pypy/translator/platform/darwin.py
==============================================================================
--- pypy/trunk/pypy/translator/platform/darwin.py	(original)
+++ pypy/trunk/pypy/translator/platform/darwin.py	Fri Nov 26 10:58:31 2010
@@ -12,12 +12,14 @@
 
     so_ext = 'so'
     
+    default_cc = 'gcc'
+
     def __init__(self, cc=None):
         if cc is None:
             try:
                 cc = os.environ['CC']
             except KeyError:
-                cc = 'gcc'
+                cc = default_cc
         self.cc = cc
 
     def _args_for_shared(self, args):
@@ -85,3 +87,4 @@
     link_flags = ('-arch', 'x86_64', '-mmacosx-version-min=10.4')
     cflags = ('-arch', 'x86_64', '-O3', '-fomit-frame-pointer',
               '-mmacosx-version-min=10.4')
+    default_cc = 'gcc-4.0'



More information about the Pypy-commit mailing list