[pypy-svn] r18372 - pypy/dist/pypy/translator/asm/ppcgen

mwh at codespeak.net mwh at codespeak.net
Tue Oct 11 10:53:47 CEST 2005


Author: mwh
Date: Tue Oct 11 10:53:45 2005
New Revision: 18372

Modified:
   pypy/dist/pypy/translator/asm/ppcgen/func_builder.py
Log:
Fix label copying around in func_builder (only affects dumping of
output, I think/hope).


Modified: pypy/dist/pypy/translator/asm/ppcgen/func_builder.py
==============================================================================
--- pypy/dist/pypy/translator/asm/ppcgen/func_builder.py	(original)
+++ pypy/dist/pypy/translator/asm/ppcgen/func_builder.py	Tue Oct 11 10:53:45 2005
@@ -81,9 +81,9 @@
 
     ourcode.label(FAST_ENTRY_LABEL)
     # err, should be an Assembler method:
-    l = code.labels.copy()
-    for k in l:
-        l[k] += 4*len(ourcode.insts)
+    l = {}
+    for k in code.labels:
+        l[k] = code.labels[k] + 4*len(ourcode.insts)
     r = code.rlabels.copy()
     for k in code.rlabels:
         r[k + 4*len(ourcode.insts)] = code.rlabels[k]



More information about the Pypy-commit mailing list