Christoph Gohlke, 26.08.2012 17:54: > On 8/26/2012 2:41 AM, Stefan Behnel wrote: >> A patch would essentially look like this: >> >> diff -r 18fed0dec20e Cython/Compiler/Code.py >> --- a/Cython/Compiler/Code.py Sun Aug 26 00:54:01 2012 +0200 >> +++ b/Cython/Compiler/Code.py Sun Aug 26 11:39:29 2012 +0200 >> @@ -893,6 +893,8 @@ >> code.write('\n#line 1 "cython_utility"\n') >> code.putln("") >> code.putln("/* Runtime support code */") >> + code.putln("#pragma auto_inline(off)") >> + code.putln("") >> >> def finalize_main_c_code(self): >> self.close_global_decls() > > Thanks. I just tried this. The `#pragma auto_inline(off)` line appears > after the MemoryView code and has no effect on that part.
Argh. That's too bad - the memory view code is actually compiled from Cython code and gets injected at the tree level, not by the code generator. I would like to avoid an impact on user code by this pragma, so I think we'll have to find a way to inject the pragma into the code stream somehow... Stefan _______________________________________________ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel