RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic [v7]

Andrew Haley aph at openjdk.org
Tue Oct 25 14:27:31 UTC 2022


On Thu, 20 Oct 2022 20:26:47 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:

> The GCC bugs with `-ffast-math` only corrupts `FTZ` and `DAZ`.
> 
> But `RC` and exception masks may be corrupted as well the same way and I believe the consequences are be similar (silent divergence in results during FP computations).

I think we can catch the things that are likely, and will result in silent corruption. We should limit this, I think, to rounding modes and denormals-to-zero. I don't think we should bother with exception masks.

-------------

PR: https://git.openjdk.org/jdk/pull/10661



More information about the build-dev mailing list