Skip to content

Commit 41c8971

Browse files
committed
8287122: Use gcc12 -ftrivial-auto-var-init=pattern in debug builds
Reviewed-by: erikj
1 parent 5da0eee commit 41c8971

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

make/autoconf/flags-cflags.m4

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,11 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
481481
else
482482
DEBUG_CFLAGS_JDK="-DDEBUG"
483483
484+
if test "x$TOOLCHAIN_TYPE" = xgcc; then
485+
DEBUG_CFLAGS_JDK="DEBUG_CFLAGS_JDK -ftrivial-auto-var-init=pattern"
486+
DEBUG_CFLAGS_JVM="-ftrivial-auto-var-init=pattern"
487+
fi
488+
484489
if test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then
485490
DEBUG_CFLAGS_JVM="-fpic -mcmodel=large"
486491
fi

0 commit comments

Comments
 (0)