[issue24974] ICC on Windows 8.1: _decimal fails to compile without /fp:strict

2015-08-31 Thread Zachary Ware

New submission from Zachary Ware:

When building on Windows 8.1 with ICC 15.0 (backed by VS 2015 Community), the 
_decimal module fails to compile:

ClCompile:
  mpdecimal.c
..\Modules\_decimal\libmpdec\mpdecimal.c(46): error : fenv_access cannot be 
enabled except in precise, source, double, and extended modes 
[P:\ath\to\cpython\PCbuild\_decimal.vcxproj]
#pragma fenv_access(on)
   ^

Unfortunately, I can't reproduce this on two other machines both running 
Windows Server 2012 R2, with otherwise nearly identical configurations to mine.

Since I can't reproduce it elsewhere (including on the ICC Windows buildbot) 
and have a relatively easy workaround (passing '/fp:strict' makes the problem 
go away), setting priority to 'low' until somebody else can reproduce it.

--
components: Build, Windows
messages: 249428
nosy: facundobatista, mark.dickinson, paul.moore, r.david.murray, rhettinger, 
skrah, steve.dower, tim.golden, zach.ware
priority: low
severity: normal
stage: test needed
status: open
title: ICC on Windows 8.1: _decimal fails to compile without /fp:strict
type: compile error
versions: Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24974] ICC on Windows 8.1: _decimal fails to compile without /fp:strict

2015-08-31 Thread Steve Dower

Steve Dower added the comment:

It should be defaulting to precise mode, but maybe ICC has a different default?

I wrote on #24973:

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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com