File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -520,7 +520,10 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_UNDEFINED_BEHAVIOR_SANITIZER],
520520 # Silence them for now.
521521 UBSAN_CHECKS="-fsanitize=undefined -fsanitize=float-divide-by-zero -fno-sanitize=shift-base -fno-sanitize=alignment \
522522 $ADDITIONAL_UBSAN_CHECKS"
523- UBSAN_CFLAGS="$UBSAN_CHECKS -Wno-stringop-truncation -Wno-format-overflow -Wno-array-bounds -Wno-stringop-overflow -fno-omit-frame-pointer -DUNDEFINED_BEHAVIOR_SANITIZER"
523+ UBSAN_CFLAGS="$UBSAN_CHECKS -Wno-array-bounds -fno-omit-frame-pointer -DUNDEFINED_BEHAVIOR_SANITIZER"
524+ if test "x$TOOLCHAIN_TYPE" = "xgcc"; then
525+ UBSAN_CFLAGS="$UBSAN_CFLAGS -Wno-format-overflow -Wno-stringop-overflow -Wno-stringop-truncation"
526+ fi
524527 UBSAN_LDFLAGS="$UBSAN_CHECKS"
525528 # On AIX, the llvm_symbolizer is not found out of the box, so we have to provide the
526529 # full qualified llvm_symbolizer path in the __ubsan_default_options() function in
You can’t perform that action at this time.
0 commit comments