From cc8fe8c3cc6bb491401c40bfabe75f007869fc7c Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 10 May 2024 14:18:18 -0400 Subject: [PATCH] Drop -fno-delete-null-pointer-checks Signed-off-by: Stephen Gallagher --- nodejs22.spec | 3 --- packaging/nodejs.spec.j2 | 3 --- 2 files changed, 6 deletions(-) diff --git a/nodejs22.spec b/nodejs22.spec index 281e07d..8396d43 100644 --- a/nodejs22.spec +++ b/nodejs22.spec @@ -529,8 +529,6 @@ export CXX='%{__cxx}' export NODE_GYP_FORCE_PYTHON=%{python3} # 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 # 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) @@ -539,7 +537,6 @@ extra_cflags=( -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DZLIB_CONST - -fno-delete-null-pointer-checks -O3 -fno-ipa-icf ) diff --git a/packaging/nodejs.spec.j2 b/packaging/nodejs.spec.j2 index 658a0fe..b2d7830 100644 --- a/packaging/nodejs.spec.j2 +++ b/packaging/nodejs.spec.j2 @@ -541,8 +541,6 @@ export CXX='%{__cxx}' export NODE_GYP_FORCE_PYTHON=%{python3} # 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 # 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) @@ -551,7 +549,6 @@ extra_cflags=( -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DZLIB_CONST - -fno-delete-null-pointer-checks -O3 -fno-ipa-icf )