Integrated: 8293887: AArch64 build failure with GCC 12 due to maybe-uninitialized warning in libfdlibm k_rem_pio2.c
Hao Sun
haosun at openjdk.org
Tue Sep 27 03:13:21 UTC 2022
On Thu, 22 Sep 2022 07:02:16 GMT, Hao Sun <haosun at openjdk.org> wrote:
> This warning seems to be a false positive, because 1) array "fq" with elements from index 0 to "jz" has already been initialized as "fw" at line 290 [1], and 2) variable "jz" should be non-negative from the comment at line 99 [2].
>
> Note-1: GCC warning option -Wmaybe-uninitialized is not a new one. Note-2: x86-64 build with GCC 12 on Ubuntu 22.04 passed in my local test.
>
> This warning is raised only on GCC 12 + AArch64. I suspect it might be some GCC 12 bug, so I reported it to GCC community [3].
>
> Since it involves third party code, I think it's better to suppress the warning by simply disabling this warning option in the makefile.
>
> Testing: Release builds with GCC 9, GCC 11 and GCC 12 passed on Ubuntu 22.04/AArch64 system.
>
> [1] https://github.com/openjdk/jdk/blob/master/src/java.base/share/native/libfdlibm/k_rem_pio2.c#L290
> [2] https://github.com/openjdk/jdk/blob/master/src/java.base/share/native/libfdlibm/k_rem_pio2.c#L99
> [3] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106992
This pull request has now been integrated.
Changeset: 02ea3381
Author: Hao Sun <haosun at openjdk.org>
Committer: Ningsheng Jian <njian at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/02ea338177df781912dc782e32200eaf4731a0da
Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
8293887: AArch64 build failure with GCC 12 due to maybe-uninitialized warning in libfdlibm k_rem_pio2.c
Reviewed-by: erikj, shade, ihse
-------------
PR: https://git.openjdk.org/jdk/pull/10386
More information about the build-dev
mailing list