[pypy-svn] r22890 - pypy/dist/pypy/translator/c/test

ericvrp at codespeak.net ericvrp at codespeak.net
Tue Jan 31 13:38:34 CET 2006


Author: ericvrp
Date: Tue Jan 31 13:38:32 2006
New Revision: 22890

Modified:
   pypy/dist/pypy/translator/c/test/test_backendoptimized.py
Log:
this fixes the segfault. Apperently it's al too easy to run raisingops2direct_call
multiple times, which does not work. The problem is that the newly added functions
contain identicly named operations which should not be converted to direct_calls
the 2nd time the transformation is called. It's probably better to rename int_floordiv
and int_mod in the newly added functions so this transformation can be called
multiple times without a problem.


Modified: pypy/dist/pypy/translator/c/test/test_backendoptimized.py
==============================================================================
--- pypy/dist/pypy/translator/c/test/test_backendoptimized.py	(original)
+++ pypy/dist/pypy/translator/c/test/test_backendoptimized.py	Tue Jan 31 13:38:32 2006
@@ -180,7 +180,6 @@
         def process(self, t):
             _TestTypedTestCase.process(self, t)
             self.t = t
-            backend_optimizations(t)
 
     def test_int_floordiv_zer(self):
         def f(x=int):



More information about the Pypy-commit mailing list