@@ -862,15 +862,6 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
862
862
$1 _TOOLCHAIN_CFLAGS="${$1 _GCC6_CFLAGS}"
863
863
864
864
$1 _WARNING_CFLAGS_JVM="-Wno-format-zero-length -Wtype-limits -Wuninitialized"
865
- elif test "x$TOOLCHAIN_TYPE" = xclang; then
866
- NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks"
867
- FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ $NO_DELETE_NULL_POINTER_CHECKS_CFLAG] ,
868
- PREFIX: $3 ,
869
- IF_FALSE: [
870
- NO_DELETE_NULL_POINTER_CHECKS_CFLAG=
871
- ]
872
- )
873
- $1 _TOOLCHAIN_CFLAGS="${NO_DELETE_NULL_POINTER_CHECKS_CFLAG}"
874
865
fi
875
866
876
867
if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
@@ -1008,17 +999,12 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
1008
999
# $2 - Prefix for compiler variables (either BUILD_ or nothing).
1009
1000
AC_DEFUN ( [ FLAGS_SETUP_GCC6_COMPILER_FLAGS] ,
1010
1001
[
1011
- # These flags are required for GCC 6 builds as undefined behavior in OpenJDK code
1012
- # runs afoul of the more aggressive versions of these optimizations.
1013
- # Notably, value range propagation now assumes that the this pointer of C++
1014
- # member functions is non-null.
1015
- NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks"
1016
- FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ $NO_DELETE_NULL_POINTER_CHECKS_CFLAG] ,
1017
- PREFIX: $2 , IF_FALSE: [ NO_DELETE_NULL_POINTER_CHECKS_CFLAG=""] )
1002
+ # This flag is required for GCC 6 builds as undefined behavior in OpenJDK code
1003
+ # runs afoul of the more aggressive versions of this optimization.
1018
1004
NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse"
1019
1005
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ $NO_LIFETIME_DSE_CFLAG] ,
1020
1006
PREFIX: $2 , IF_FALSE: [ NO_LIFETIME_DSE_CFLAG=""] )
1021
- $1 _GCC6_CFLAGS="${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${ NO_LIFETIME_DSE_CFLAG}"
1007
+ $1 _GCC6_CFLAGS="${NO_LIFETIME_DSE_CFLAG}"
1022
1008
] )
1023
1009
1024
1010
AC_DEFUN_ONCE ( [ FLAGS_SETUP_BRANCH_PROTECTION] ,
0 commit comments