summaryrefslogtreecommitdiff
path: root/mk/vars.mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-02-16 22:15:39 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-02-16 22:15:39 +0100
commit77f9d57de4989f5012b1651df6512c4828144d93 (patch)
treeb6d0410896bdb3ec19f13c7ecff5747dcfb6edec /mk/vars.mk
parent3f8f308a7f967deedea6771723346ba0cb3002d0 (diff)
rework ARM NEON support
Don't build C library with -ffast-math when NEON is globally enabled. Disable NEON support by default. Remove dangerous -funsafe-math-optimizations. Most suggestions from Rich Felker after analyzing libc-test failures in my setup.
Diffstat (limited to 'mk/vars.mk')
-rw-r--r--mk/vars.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 38a2e9393..67aa42206 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -264,8 +264,8 @@ endif
ifeq ($(ADK_TARGET_ARCH_ARM),y)
ifeq ($(ADK_TARGET_ARCH_ARM_WITH_NEON),y)
-TARGET_CFLAGS+= -funsafe-math-optimizations -ffast-math
-TARGET_CXXFLAGS+= -funsafe-math-optimizations -ffast-math
+TARGET_CFLAGS+= -ffast-math
+TARGET_CXXFLAGS+= -ffast-math
endif
ifeq ($(ADK_TARGET_ARCH_ARM_WITH_THUMB),y)
TARGET_CFLAGS+= -mthumb -Wa,-mimplicit-it=thumb -mno-thumb-interwork