aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2017-10-23 15:31:37 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2017-10-23 15:34:36 +0100
commitbe080b6c143901d998c91f28ef7b2fe4a25c0237 (patch)
treed60dae8294c1315611d68c21c8677219667062f7
parent5062680c602c27c9128ae2e38d199df22a8c2d38 (diff)
downloadglibc-be080b6c143901d998c91f28ef7b2fe4a25c0237.zip
glibc-be080b6c143901d998c91f28ef7b2fe4a25c0237.tar.gz
glibc-be080b6c143901d998c91f28ef7b2fe4a25c0237.tar.bz2
aarch64: Add missing math Makefile for recent commit
Without -fno-math-errno, the builtins just do a call instead of inlining a single instruction.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/aarch64/fpu/Makefile8
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a011b1..1316b40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -55,7 +55,8 @@
with __builtin_trunc.
* sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
with __builtin_truncf.
- * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno.
+ * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
+ and s_l[l]round[f].c too.
2017-10-23 Alan Modra <amodra@gmail.com>
diff --git a/sysdeps/aarch64/fpu/Makefile b/sysdeps/aarch64/fpu/Makefile
new file mode 100644
index 0000000..bf38f2c
--- /dev/null
+++ b/sysdeps/aarch64/fpu/Makefile
@@ -0,0 +1,8 @@
+ifeq ($(subdir),math)
+CFLAGS-e_sqrtf.c += -fno-math-errno
+CFLAGS-e_sqrt.c += -fno-math-errno
+CFLAGS-s_lroundf.c += -fno-math-errno
+CFLAGS-s_lround.c += -fno-math-errno
+CFLAGS-s_llroundf.c += -fno-math-errno
+CFLAGS-s_llround.c += -fno-math-errno
+endif