From 1afca47fed731aa50c340d4ea172feed7c9ab9bf Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sat, 31 Jul 2010 11:12:28 -0700 Subject: [PATCH] Disable optimizations (revert before release). --- Cython/Compiler/Main.py | 14 +++++++------- runtests.py | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Cython/Compiler/Main.py b/Cython/Compiler/Main.py index c745b5ac..26c71c07 100644 --- a/Cython/Compiler/Main.py +++ b/Cython/Compiler/Main.py @@ -138,25 +138,25 @@ class Context(object): _align_function_definitions, MarkClosureVisitor(self), ConstantFolding(), - FlattenInListTransform(), + # FlattenInListTransform(), WithTransform(self), DecoratorTransform(self), AnalyseDeclarationsTransform(self), CreateClosureClasses(self), AutoTestDictTransform(self), EmbedSignature(self), - EarlyReplaceBuiltinCalls(self), + EarlyReplaceBuiltinCalls(self), ## Necessary? MarkAssignments(self), MarkOverflowingArithmetic(self), - TransformBuiltinMethods(self), +# TransformBuiltinMethods(self), IntroduceBufferAuxiliaryVars(self), _check_c_declarations, AnalyseExpressionsTransform(self), - OptimizeBuiltinCalls(self), - IterationTransform(), +# OptimizeBuiltinCalls(self), +# IterationTransform(), SwitchTransform(), - DropRefcountingTransform(), - FinalOptimizePhase(self), +# DropRefcountingTransform(), +# FinalOptimizePhase(self), GilCheck(), #ClearResultCodes(self), #SpecialFunctions(self), diff --git a/runtests.py b/runtests.py index d06cd260..d4921d5b 100644 --- a/runtests.py +++ b/runtests.py @@ -329,7 +329,8 @@ class CythonCompileTestCase(unittest.TestCase): use_listing_file = False, cplus = self.language == 'cpp', generate_pxi = False, - evaluate_tree_assertions = True, +# evaluate_tree_assertions = True, + evaluate_tree_assertions = False, ) cython_compile(source, options=options, full_module_name=module) -- 2.26.2