RFR: 8318481: linux-arm32 attribute warning for offset_of
Mikael Vidstedt
mikael at openjdk.org
Thu Oct 19 19:55:12 UTC 2023
On Wed, 18 Oct 2023 23:02:18 GMT, Mikael Vidstedt <mikael at openjdk.org> wrote:
> The linux-arm32 build generates a somewhat spectacular number of warnings, all for the same code - the offset_of macro in hotspot:
>
>
> src/hotspot/share/utilities/globalDefinitions_gcc.hpp:144:40: warning: requested alignment 16 is larger than 8 [-Wattributes]
> alignas(16) char space[sizeof (klass)];
>
>
> I was hoping to find a simple fix for the code in question but I'm not sure what that would look like. Until proven otherwise I propose that we disable the warning for arm32.
It was pointed out that this issue has already been reported and is not specific to arm32. I'm going to withdraw this PR and explore alternative solutions.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16256#issuecomment-1771613371
More information about the build-dev
mailing list