RFR: 8325881: Require minimum gcc version 10
Kim Barrett
kbarrett at openjdk.org
Wed Feb 28 02:47:47 UTC 2024
On Sat, 17 Feb 2024 08:28:56 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
> Please review this change that updates the minimum supported version of gcc
> to be used for building OpenJDK from 6.0 to 10.0.
>
> This permits enabling C++17 (JDK-8314488), though gcc 9.0 might suffice for
> that. A minimum of gcc 10 also obtains the primitives needed to support a
> work-alick for std::is_constant_evaluated (added in C++20). There are a bunch
> of improvements that would be enabled by that. Having it would also allow the
> elimination of a bit of a mess in the HotSpot assert macros that was needed to
> work around the lack of that feature (JDK-8303805). Either current or proposed
> minimum versions of other supported compilers also provide the needed
> primitives.
>
> Testing: mach5 tier1 (uses gcc13.2 on gcc-based platforms)
> Locally (linux-x64) built and ran tier1 with gcc10.3.
There was some discussion of gcc versions over in the PR proposing to enable C++17:
https://github.com/openjdk/jdk/pull/14988#issuecomment-1895511862
https://github.com/openjdk/jdk/pull/14988#issuecomment-1895729165
Has that been sufficiently answered? Good to go here?
@shipilev @theRealAph @TheRealMDoerr
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17899#issuecomment-1968089822
More information about the build-dev
mailing list