about summary refs log tree commit diff
path: root/math/Makefile
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-24 13:12:43 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-04-17 16:12:40 -0300
commit0062fcb8bab9fcaddf129bedb0c4f06b1670ad34 (patch)
treeed7be760255e979b9b1aca21718d11fb1e12bb5b /math/Makefile
parent9193695399a8e6cf79a9825a7ef480f21e080583 (diff)
downloadglibc-0062fcb8bab9fcaddf129bedb0c4f06b1670ad34.tar.gz
glibc-0062fcb8bab9fcaddf129bedb0c4f06b1670ad34.tar.xz
glibc-0062fcb8bab9fcaddf129bedb0c4f06b1670ad34.zip
Use -ffloat-store iff compiler supports it
Diffstat (limited to 'math/Makefile')
-rw-r--r--math/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/math/Makefile b/math/Makefile
index 192c4fb820..da5d041d6c 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -936,7 +936,7 @@ $(objpfx)test-tgmath3-macro-list.out: gen-tgmath-tests.py
 
 libm-test-fast-math-cflags = -fno-builtin -D__FAST_MATH__ -DTEST_FAST_MATH
 libm-test-vec-cflags = $(libm-test-fast-math-cflags) -fno-inline \
-		       -ffloat-store -D_OPENMP=201307 -Wno-unknown-pragmas
+		       $(libc_cv_cc_float_store) -D_OPENMP=201307 -Wno-unknown-pragmas
 
 CFLAGS-test-double-vlen4-wrappers.c += $(double-vlen4-arch-ext-cflags)
 
@@ -952,7 +952,7 @@ CFLAGS-test-float-vlen16-wrappers.c += $(float-vlen16-arch-ext-cflags)
 # raise spurious exceptions for sNaNs, but also do not test for
 # exceptions.  Thus both versions of the classification macros are
 # validated.
-libm-test-no-inline-cflags = -fno-inline -ffloat-store -fno-builtin \
+libm-test-no-inline-cflags = -fno-inline $(libc_cv_cc_float_store) -fno-builtin \
 			     $(config-cflags-signaling-nans)
 CFLAGS-test-tgmath.c += -fno-builtin
 # The following testcase uses very long lines (>3 million), so it may take a