]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
aarch64: Add missing math Makefile for recent commit
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 23 Oct 2017 14:31:37 +0000 (15:31 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 23 Oct 2017 14:34:36 +0000 (15:34 +0100)
Without -fno-math-errno, the builtins just do a call instead of
inlining a single instruction.

ChangeLog
sysdeps/aarch64/fpu/Makefile [new file with mode: 0644]

index 4a011b136b6187ed3485f69a4fd305a71ab15eba..1316b401ae4ac60efbedc015741c00bc0a484862 100644 (file)
--- 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 (file)
index 0000000..bf38f2c
--- /dev/null
@@ -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