aboutsummaryrefslogtreecommitdiff
path: root/math/Makefile
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-12-15 21:24:14 +0800
committerH.J. Lu <hjl.tools@gmail.com>2024-12-22 13:02:30 +0800
commit56cdc529fb553a307be459df3f1be90d1a231f0a (patch)
tree7b5ecd8f50ce52ea637bfa6acfe0f7593bb306b2 /math/Makefile
parent90edd56c01bc50c55ef558871cf550199fc0f1a2 (diff)
downloadglibc-56cdc529fb553a307be459df3f1be90d1a231f0a.tar.xz
glibc-56cdc529fb553a307be459df3f1be90d1a231f0a.zip
Add test-config-cflags-float-store for -ffloat-store
Clang doesn't support -ffloat-store: clang: error: optimization flag '-ffloat-store' is not supported [-Werror,-Wignored-optimization-argument] Define test-config-cflags-float-store for -ffloat-store and use it in math/Makefile for testing. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'math/Makefile')
-rw-r--r--math/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/math/Makefile b/math/Makefile
index a9f29d6b5b..9f8024c86c 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -1062,7 +1062,8 @@ endif
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
+ $(test-config-cflags-float-store) \
+ -D_OPENMP=201307 -Wno-unknown-pragmas
CFLAGS-test-double-vlen4-wrappers.c += $(double-vlen4-arch-ext-cflags)
@@ -1078,7 +1079,8 @@ 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 -fno-builtin \
+ $(test-config-cflags-float-store) \
$(config-cflags-signaling-nans)
CFLAGS-test-tgmath.c += -fno-builtin
# The following testcase uses very long lines (>3 million), so it may take a