RFR: 8355594: Warnings occur when building with clang and enabling ubsan

Joachim Kern jkern at openjdk.org
Mon Apr 28 16:01:57 UTC 2025


On Mon, 28 Apr 2025 15:22:50 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> When building ubsan-enabled binaries with the clang toolchain (e.g. on AIX or Linux), we get the following warnings :
> 
> 
> warning: unknown warning option '-Wno-stringop-truncation'; did you mean '-Wno-string-concatenation'? [-Wunknown-warning-option]
> warning: unknown warning option '-Wno-format-overflow'; did you mean '-Wno-shift-overflow'? [-Wunknown-warning-option]
> warning: unknown warning option '-Wno-stringop-overflow'; did you mean '-Wno-shift-overflow'? [-Wunknown-warning-option]

Marked as reviewed by jkern (Committer).

make/autoconf/jdk-options.m4 line 526:

> 524:   if test "x$TOOLCHAIN_TYPE" = "xgcc"; then
> 525:     UBSAN_CFLAGS="$UBSAN_CFLAGS -Wno-stringop-truncation -Wno-format-overflow -Wno-stringop-overflow"
> 526:   fi

LGTM

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

PR Review: https://git.openjdk.org/jdk/pull/24924#pullrequestreview-2799855017
PR Review Comment: https://git.openjdk.org/jdk/pull/24924#discussion_r2063994800


More information about the build-dev mailing list