aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerban Constantinescu <serban.constantinescu@arm.com>2014-10-06 15:49:37 +0100
committerNarayan Kamath <narayan@google.com>2014-10-07 09:57:57 +0000
commit0eb593375b6e890846eedbf08ee6901e1d73beba (patch)
tree5c90d051aed7bd21667adfb60a8bbeb60e226398
parentc831c726067e0d8a05362e710e2405f0eff81e07 (diff)
downloadfdlibm-0eb593375b6e890846eedbf08ee6901e1d73beba.tar.gz
ARM64: Fix fdlibm compilation flags.
Currently fdlibm is compiled using the default C standard (gnu99). This specifies a relaxed floating point model that enables fused operations such as fused multiply-add (-ffp-contract=fast). Since fdlibm is used to compute StrictMath operations this is too permissive on targets that have support for fused operations such as ARM64. bug: 17663117 Change-Id: Ie6c4025b21f9cb0fbdda24f0135908a9625a5c89 Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
-rw-r--r--Android.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 734bfae..5cf8648 100644
--- a/Android.mk
+++ b/Android.mk
@@ -54,6 +54,9 @@ cflags += "-D__LITTLE_ENDIAN"
cflags += "-fno-strict-aliasing"
cflags += "-ffloat-store"
+# c99 specifies a less relaxed floating point model that does not enable
+# floating point expession contraction (e.g: fused multiply-add operations).
+cflags += "-std=c99"
#
# Build for the target (device).