[Issue 14139] GIT HEAD : PI now has wrong value

2015-02-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14139

Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution|--- |WONTFIX

--- Comment #7 from Walter Bright bugzi...@digitalmars.com ---
(In reply to Temtaime from comment #4)
 I'm using MSVC 2013 with /O2 /GL /Gw /fp:fast.
 
 Can /fp:fast have an effect on DMD ? I'll with /GL and without /fp:fast,
 okay.

According to Microsoft documentation, /fp:fast will:

Creates the fastest code in most cases by relaxing the rules for optimizing
floating-point operations. This enables the compiler to optimize floating-point
code for speed at the expense of accuracy and correctness.

 -- https://msdn.microsoft.com/en-us/library/e7s85ffb.aspx

I interpret that as meaning insert random bugs in floating point code.

DMD is not designed to work with that, and was certainly never tested with
that. I'm going to mark this as WONTFIX. The only supported build options are
the ones in the VS solution included with DMD.

--


[Issue 14139] GIT HEAD : PI now has wrong value

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14139

Martin Nowak c...@dawg.eu changed:

   What|Removed |Added

 CC||c...@dawg.eu

--- Comment #6 from Martin Nowak c...@dawg.eu ---
Any insight on why LTO mess this up?

--


[Issue 14139] GIT HEAD : PI now has wrong value

2015-02-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14139

--- Comment #5 from Vladimir Panteleev thecybersha...@gmail.com ---
The VS solution included with DMD has a Release target, any reason you're not
using that?

--


[Issue 14139] GIT HEAD : PI now has wrong value

2015-02-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14139

--- Comment #4 from Temtaime temta...@gmail.com ---
I'm using MSVC 2013 with /O2 /GL /Gw /fp:fast.

Can /fp:fast have an effect on DMD ? I'll with /GL and without /fp:fast, okay.

--


[Issue 14139] GIT HEAD : PI now has wrong value

2015-02-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14139

Vladimir Panteleev thecybersha...@gmail.com changed:

   What|Removed |Added

 CC||thecybersha...@gmail.com

--- Comment #1 from Vladimir Panteleev thecybersha...@gmail.com ---
I can't reproduce this...

--


[Issue 14139] GIT HEAD : PI now has wrong value

2015-02-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14139

--- Comment #2 from Temtaime temta...@gmail.com ---
The bug exists only on Windows when dmd is built with /GL, /LTCG compiler
optimization options.
2.066 compiles and runs successfully with these options.

--


[Issue 14139] GIT HEAD : PI now has wrong value

2015-02-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14139

Orvid King blah38...@gmail.com changed:

   What|Removed |Added

 CC||blah38...@gmail.com

--- Comment #3 from Orvid King blah38...@gmail.com ---
Which version of MSVC? I use a 64-bit DMD compiled by MSVC 2010 with link-time
code gen (/LTCG) and whole program optimization (/GL), and have no issues here.
Is it possible that you've changed the floating point model in your build to
something other than precise (/fp:precise)?

--