RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic
Andrew Haley
aph at openjdk.org
Wed Oct 12 14:00:31 UTC 2022
On Wed, 12 Oct 2022 11:28:08 GMT, Magnus Ihse Bursie <ihse 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.
I see.
> 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?
The former.
> 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..?
Probably, yes. I'm happy just to fix it on Linux.
-------------
PR: https://git.openjdk.org/jdk/pull/10661
More information about the build-dev
mailing list