[jdk11u-dev] RFR: 8247818: GCC 10 warning stringop-overflow with symbol code

Andrew John Hughes andrew at openjdk.org
Mon Jan 22 17:12:32 UTC 2024


On Wed, 10 Jan 2024 13:12:49 GMT, Jonathan Dowland <jdowland at openjdk.org> wrote:

> 11u-dev is tricky to build with GCC 11 and newer. GCC 11 is the default version in current Debian stable (and likely derivatives e.g. Ubuntu, but I have not checked) as well as RHEL 9 (and derivatives, likewise unchecked), so I think it's worthwhile to improve that.
> 
> This particular patch addresses one of the obstacles (a warning from GCC 10 onwards). It doesn't apply clean, but cherry-pick conflicts were trivial to resolve. It was backported from 16 to 15 and 13 and seems worthwhile for 11u.

Changes are the same as 17u, but patch is unclean due to context differences and the changed signature of `byte_at_put`.

Thanks for looking into this. I've had warnings as errors turned off for goodness knows how long, likely because of build failures like this.

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

Marked as reviewed by andrew (Reviewer).

PR Review: https://git.openjdk.org/jdk11u-dev/pull/2451#pullrequestreview-1836962501


More information about the jdk-updates-dev mailing list