From 5c5a8b99cf96b71940e36a9db66d3a61bc315016 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 7 Mar 2022 15:09:53 -0300 Subject: Disable use of -fsignaling-nans if compiler does not support it Reviewed-by: Fangrui Song --- sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile | 4 ++-- sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sysdeps/powerpc/powerpc64') 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 -- cgit v1.2.3