On Mon, 24 Jun 2024 14:14:36 GMT, Jan Kratochvil <jkratoch...@openjdk.org> wrote:
>> make/autoconf/jdk-options.m4 line 448: >> >>> 446: if test "x$TOOLCHAIN_TYPE" = "xclang"; then >>> 447: ASAN_CFLAGS="$ASAN_CFLAGS >>> -fsanitize-address-use-after-return=never" >>> 448: fi >> >> Curious, the other ASAN options work across clang and GCC? Only >> use-after-return requires different flags for GCC and clang? > > Most of the options are compatible, for example these (a subset): > `-fsanitize=undefined -fno-sanitize-recover=all > -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow > -fno-sanitize=null -fno-sanitize=alignment` > But compile-time `use-after-return` setting is not. There are only 8 gcc > `--param` `asan-*` keywords, I do not know why. Curious. Thanks for the digging, Jan! ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/19843#discussion_r1651122333