NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/50940: cc -ffast-math fails to disable denormals on amd64



On Fri, Mar 11, 2016 at 04:10:00PM +0000, Andreas Gustafsson wrote:
>  >  Whether the CPU generates them or not is a secondary question -- at
>  >  that point you are already in Undefined Behavior land for this
>  >  mode.
>  
>  Do you at least agree that the current NetBSD behavior is incorrect?

No. Just because some parts of the code is compiled with -ffast-math, it
doesn't mean that other parts should get incorrect behavior. That
includes strtod and other parts of the run time library. As such,
changing the FP state automatically on program execution is much more
harmful.

Joerg


Home | Main Index | Thread Index | Old Index