RFR: 8290900: Build failure with Clang 14+ due to function warning attribute
Man Cao
manc at openjdk.org
Sat Jul 23 02:55:12 UTC 2022
On Fri, 22 Jul 2022 23:40:08 GMT, Man Cao <manc at openjdk.org> wrote:
> Hi all,
>
> Could anyone review this change that fixes build failure with Clang 14+?
> The plan is to disable the warning attribute introduced by JDK-8214976, until https://github.com/llvm/llvm-project/issues/56519 is fixed and released.
>
> -Man
Thanks for the review.
Opened https://bugs.openjdk.org/browse/JDK-8290903 to reinstate the feature.
> I'm also not sure why one would even want this new attribute if it isn't additive.
https://reviews.llvm.org/D106030 and https://github.com/ClangBuiltLinux/linux/issues/1173 might have some explanation. It seems to support some use cases in Linux kernel, so Clang issues warning/errors at compile time instead of link time.
There is also a pre-submit test failure, which looks like being investigated in https://bugs.openjdk.org/browse/JDK-8290885.
-------------
PR: https://git.openjdk.org/jdk/pull/9621
More information about the hotspot-dev
mailing list