[issue24973] CFLAGS for Visual Studio

Steve Dower report at bugs.python.org
Tue Sep 1 00:12:03 CEST 2015


Steve Dower added the comment:

I assume you're referring to #24974? The default (for MSVC) is /fp:precise, which should allow fenv_access, but maybe ICL uses /fp:fast by default for the extra speed?

It's not a safe 3.5 change now, but compiling with /fp:fast by default and using #pragma float_control(precise, push)/#pragma float_control(pop) around that section may be an option for 3.6, if the benchmarks show some value in it. Either way, the pragma is probably the better way to require particular behaviour for that section of code, rather than changing a global option.

I'm not totally opposed to allowing an extra option for setting flags when building, but there'll almost always be a better fix.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24973>
_______________________________________


More information about the Python-bugs-list mailing list