RFR: 8298006: Build failure by maybe-uninitialized error on Linux s390x GCC8 [v2]
Ichiroh Takiguchi
itakiguchi at openjdk.org
Wed Dec 7 02:42:33 UTC 2022
> I changed GCC toolchain from GCC6 to GCC8 on SLES12SP5 Linux s390x.
> I could see following errors:
>
> src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c: In function 'allocateRasterArray':
> src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:2944:73: error: 'roff[3]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
> (((*inP&rasterP->sppsm.maskArray[c]) >> roff[c])
> ~~~~^~~
>
>
>
> src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:3129:73: error: 'roff[3]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
> (((*inP&rasterP->sppsm.maskArray[c]) >> roff[c])
> ~~~~^~~
>
>
> According to error messages,
> roff and loff may not be initialized.
Ichiroh Takiguchi has updated the pull request incrementally with one additional commit since the last revision:
8298006: Build failure by maybe-uninitialized error on Linux s390x GCC8
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/11475/files
- new: https://git.openjdk.org/jdk/pull/11475/files/f690c6d3..6abf8221
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=11475&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=11475&range=00-01
Stats: 54 lines in 1 file changed: 0 ins; 54 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/11475.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/11475/head:pull/11475
PR: https://git.openjdk.org/jdk/pull/11475
More information about the client-libs-dev
mailing list