RFR: 8291822: ARM: fix build warnings with GCC11

Aleksey Shipilev shade at openjdk.org
Wed Aug 3 14:14:40 UTC 2022


On Wed, 3 Aug 2022 14:04:35 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> Same workaround was applied for other platforms in JDK-8270083 and JDK-8271869
>
>> I followed the AArch64 approach as I personally prefer to keep the scope for ignored warnings as small as possible. Just let me know what your preferred version is (beside fixing the root cause, this is beyond my c++ skills wink).
> 
> My experience is that sometimes compilers get picky when pragmas are in the middle of the method (targeting single statements), so I'd prefer the way x86 does it.

> @shipilev Should I adjust aarch64 accordingly or does this require a separate issue?

No need, that aarch64 pragma block should go away eventually. Unless that poses an immediate problem (= there is a compiler that complains), there is no reason to change it.

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

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


More information about the hotspot-dev mailing list