mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8287122: Use gcc12 -ftrivial-auto-var-init=pattern in debug builds
Reviewed-by: erikj
This commit is contained in:
parent
5da0eee3a6
commit
41c8971cbc
1 changed files with 5 additions and 0 deletions
|
@ -481,6 +481,11 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
|
|||
else
|
||||
DEBUG_CFLAGS_JDK="-DDEBUG"
|
||||
|
||||
if test "x$TOOLCHAIN_TYPE" = xgcc; then
|
||||
DEBUG_CFLAGS_JDK="DEBUG_CFLAGS_JDK -ftrivial-auto-var-init=pattern"
|
||||
DEBUG_CFLAGS_JVM="-ftrivial-auto-var-init=pattern"
|
||||
fi
|
||||
|
||||
if test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then
|
||||
DEBUG_CFLAGS_JVM="-fpic -mcmodel=large"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue