Skip to content

Commit 5e9d72e

Browse files
committed
8350094: Linux gcc 13.2.0 build fails when ubsan is enabled
Reviewed-by: mdoerr, prr, kbarrett
1 parent 2192723 commit 5e9d72e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

make/autoconf/jdk-options.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,10 +516,11 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_UNDEFINED_BEHAVIOR_SANITIZER],
516516
OPTIONAL: true)
517517
518518
# GCC reports lots of likely false positives for stringop-truncation and format-overflow.
519+
# GCC 13 also for array-bounds and stringop-overflow
519520
# Silence them for now.
520521
UBSAN_CHECKS="-fsanitize=undefined -fsanitize=float-divide-by-zero -fno-sanitize=shift-base -fno-sanitize=alignment \
521522
$ADDITIONAL_UBSAN_CHECKS"
522-
UBSAN_CFLAGS="$UBSAN_CHECKS -Wno-stringop-truncation -Wno-format-overflow -fno-omit-frame-pointer -DUNDEFINED_BEHAVIOR_SANITIZER"
523+
UBSAN_CFLAGS="$UBSAN_CHECKS -Wno-stringop-truncation -Wno-format-overflow -Wno-array-bounds -Wno-stringop-overflow -fno-omit-frame-pointer -DUNDEFINED_BEHAVIOR_SANITIZER"
523524
UBSAN_LDFLAGS="$UBSAN_CHECKS"
524525
UTIL_ARG_ENABLE(NAME: ubsan, DEFAULT: false, RESULT: UBSAN_ENABLED,
525526
DESC: [enable UndefinedBehaviorSanitizer],

0 commit comments

Comments
 (0)