diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-03-07 15:09:53 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-11-01 09:46:08 -0300 |
commit | 5c5a8b99cf96b71940e36a9db66d3a61bc315016 (patch) | |
tree | 7396885b3487d9383bf477219a79ebcf68b64d9f /sysdeps | |
parent | 6ee5a9767a245455720d39eeaa3ce136825e8a42 (diff) | |
download | glibc-5c5a8b99cf96b71940e36a9db66d3a61bc315016.tar.gz glibc-5c5a8b99cf96b71940e36a9db66d3a61bc315016.tar.xz glibc-5c5a8b99cf96b71940e36a9db66d3a61bc315016.zip |
Disable use of -fsignaling-nans if compiler does not support it
Reviewed-by: Fangrui Song <maskray@google.com>
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/powerpc/nofpu/Makefile | 24 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile | 4 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile | 4 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile | 4 |
4 files changed, 18 insertions, 18 deletions
diff --git a/sysdeps/powerpc/nofpu/Makefile b/sysdeps/powerpc/nofpu/Makefile index 3b51ff6d18..fa462339ba 100644 --- a/sysdeps/powerpc/nofpu/Makefile +++ b/sysdeps/powerpc/nofpu/Makefile @@ -27,18 +27,18 @@ CPPFLAGS += -I../soft-fp/ CFLAGS-e_atan2l.c += -fno-builtin-fabsl CFLAGS-e_hypotl.c += -fno-builtin-fabsl CFLAGS-e_powl.c += -fno-builtin-fabsl -CFLAGS-s_cacosl.c += -fsignaling-nans -CFLAGS-s_cacoshl.c += -fsignaling-nans -CFLAGS-s_casinhl.c += -fsignaling-nans -CFLAGS-s_catanl.c += -fsignaling-nans -CFLAGS-s_catanhl.c += -fsignaling-nans -CFLAGS-s_ccoshl.c += -fno-builtin-fabsl -fsignaling-nans -CFLAGS-s_cexpl.c += -fsignaling-nans -CFLAGS-s_csinhl.c += -fno-builtin-fabsl -fsignaling-nans -CFLAGS-s_clogl.c += -fno-builtin-fabsl -fsignaling-nans -CFLAGS-s_clog10l.c += -fno-builtin-fabsl -fsignaling-nans -CFLAGS-s_csinl.c += -fno-builtin-fabsl -fsignaling-nans -CFLAGS-s_csqrtl.c += -fno-builtin-fabsl -fsignaling-nans +CFLAGS-s_cacosl.c += $(config-cflags-signaling-nans) +CFLAGS-s_cacoshl.c += $(config-cflags-signaling-nans) +CFLAGS-s_casinhl.c += $(config-cflags-signaling-nans) +CFLAGS-s_catanl.c += $(config-cflags-signaling-nans) +CFLAGS-s_catanhl.c += $(config-cflags-signaling-nans) +CFLAGS-s_ccoshl.c += -fno-builtin-fabsl $(config-cflags-signaling-nans) +CFLAGS-s_cexpl.c += $(config-cflags-signaling-nans) +CFLAGS-s_csinhl.c += -fno-builtin-fabsl $(config-cflags-signaling-nans) +CFLAGS-s_clogl.c += -fno-builtin-fabsl $(config-cflags-signaling-nans) +CFLAGS-s_clog10l.c += -fno-builtin-fabsl $(config-cflags-signaling-nans) +CFLAGS-s_csinl.c += -fno-builtin-fabsl $(config-cflags-signaling-nans) +CFLAGS-s_csqrtl.c += -fno-builtin-fabsl $(config-cflags-signaling-nans) CFLAGS-w_acosl_compat.c += -fno-builtin-fabsl CFLAGS-w_asinl_compat.c += -fno-builtin-fabsl CFLAGS-w_atanhl_compat.c += -fno-builtin-fabsl diff --git a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile index 1de0f9b350..64317506c6 100644 --- a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile +++ b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile @@ -37,6 +37,6 @@ CFLAGS-s_logbf-power7.c = -mcpu=power7 # These files quiet sNaNs in a way that is optimized away without # -fsignaling-nans. -CFLAGS-s_modf-ppc32.c += -fsignaling-nans -CFLAGS-s_modff-ppc32.c += -fsignaling-nans +CFLAGS-s_modf-ppc32.c += $(config-cflags-signaling-nans) +CFLAGS-s_modff-ppc32.c += $(config-cflags-signaling-nans) endif diff --git a/sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile b/sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile index b27bad3ba4..36f4006059 100644 --- a/sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile +++ b/sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile @@ -62,6 +62,6 @@ CFLAGS-s_logb-power7.c = -mcpu=power7 # These files quiet sNaNs in a way that is optimized away without # -fsignaling-nans. -CFLAGS-s_modf-ppc64.c += -fsignaling-nans -CFLAGS-s_modff-ppc64.c += -fsignaling-nans +CFLAGS-s_modf-ppc64.c += $(config-cflags-signaling-nans) +CFLAGS-s_modff-ppc64.c += $(config-cflags-signaling-nans) endif diff --git a/sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile b/sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile index 858061484e..b59c4b21ba 100644 --- a/sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile +++ b/sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile @@ -130,8 +130,8 @@ generated += $(f128-march-routines) CFLAGS-float128-ifunc.c += $(type-float128-CFLAGS) $(no-gnu-attribute-CFLAGS) # Copy special CFLAGS for some functions -CFLAGS-s_modff128-power9.c += -fsignaling-nans -CFLAGS-m_modff128-power9.c += -fsignaling-nans +CFLAGS-s_modff128-power9.c += $(config-cflags-signaling-nans) +CFLAGS-m_modff128-power9.c += $(config-cflags-signaling-nans) # Generate ifunc wrapper files and target specific wrappers around # each routine above. Note, m_%.c files are fixed up to include |