Drop -fno-delete-null-pointer-checks

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2024-05-17 15:42:43 -04:00
parent 5c0585097e
commit b770eef3a6

View File

@ -541,8 +541,6 @@ export CXX='%{__cxx}'
export NODE_GYP_FORCE_PYTHON=%{python3} export NODE_GYP_FORCE_PYTHON=%{python3}
# build with debugging symbols and add defines from libuv (#892601) # build with debugging symbols and add defines from libuv (#892601)
# Node's v8 breaks with GCC 6 because of incorrect usage of methods on
# NULL objects. We need to pass -fno-delete-null-pointer-checks
# 2022-07-14: There's a bug in either torque or gcc that causes a # 2022-07-14: There's a bug in either torque or gcc that causes a
# segmentation fault on ppc64le and s390x if compiled with -O2. Things # segmentation fault on ppc64le and s390x if compiled with -O2. Things
# run fine on -O1 and -O3, so we'll just go with -O3 (like upstream) # run fine on -O1 and -O3, so we'll just go with -O3 (like upstream)
@ -551,7 +549,6 @@ extra_cflags=(
-D_LARGEFILE_SOURCE -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_FILE_OFFSET_BITS=64
-DZLIB_CONST -DZLIB_CONST
-fno-delete-null-pointer-checks
-O3 -O3
-fno-ipa-icf -fno-ipa-icf
) )