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

Magnus Ihse Bursie ihse at openjdk.org
Wed Oct 12 11:31:27 UTC 2022


On Tue, 11 Oct 2022 16:50:33 GMT, Andrew Haley <aph at openjdk.org> wrote:

> Also: this patch is Linux-only. I'll ask for help from build experts to make the tests GCC-only; it's not clear to me how.

@theRealAph We currently have a more or less 1-to-1 relationship between OS and compiler. From a portability perspective this is not ideal, but it is also hard to keep some kind of theoretical barrier when it never is tested.

Are you worried that this is a problem that occurs with gcc on other platforms as well, or that it occurs on linux with other compilers than gcc? 

We do not support gcc on macos, windows or aix, which leaves linux as the only gcc platform in the mainline (ports in separate repos will have to handle this themselves). We do support using clang on linux instead of gcc (but do not test it regularly). But my impression here is that this is more of a gcc-problem than a linux problem..?

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

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



More information about the build-dev mailing list