RFR: 8288048: Build failure with GCC 6 after JDK-8286562

Yasumasa Suenaga ysuenaga at openjdk.java.net
Thu Jun 9 13:19:31 UTC 2022


On Wed, 8 Jun 2022 17:52:42 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> [JDK-8286562](https://bugs.openjdk.org/browse/JDK-8286562) added the `-Wstringop-overflow` pragma, which cannot be understood by GCC 6. There are already ways to make such pragmas conditional on GCC version.
> 
> Additional testing:
>  - [x] Linux x86_64 `fastdebug` build with GCC 6
>  - [x] Linux x86_64 `fastdebug` build with GCC 9
> 
> @YaSuenag, if you could test with GCC 12, that would be helpful.

Your change works fine with GCC 12.1.1 on my Fedora 36 (gcc-12.1.1-1.fc36.x86_64).
Looks good.

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

Marked as reviewed by ysuenaga (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/9090


More information about the hotspot-dev mailing list