aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Newton <will.newton@linaro.org>2014-03-31 15:58:19 +0100
committerWill Newton <will.newton@linaro.org>2014-04-01 12:50:41 +0100
commitf6c557968c248b4554e708bd08983f0908ac09f1 (patch)
tree491643a2da0962f73823cbf6e383207c2d4f103f
parent13f7fe35ae2b0ea55dc4b9628763aafdc8bdc30c (diff)
downloadglibc-f6c557968c248b4554e708bd08983f0908ac09f1.zip
glibc-f6c557968c248b4554e708bd08983f0908ac09f1.tar.gz
glibc-f6c557968c248b4554e708bd08983f0908ac09f1.tar.bz2
benchtests: Build ffs and ffsl benchtests with -fno-builtin
Without this flag it is possible that the compiler will optimize away the calls to ffs/ffsll. ChangeLog: 2014-04-01 Will Newton <will.newton@linaro.org> * benchtests/Makefile (CFLAGS-bench-ffs.c): Add -fno-builtin. (CFLAGS-bench-ffsll.c): Likewise.
-rw-r--r--ChangeLog5
-rw-r--r--benchtests/Makefile3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1ef37c7..bfb3083 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-04-01 Will Newton <will.newton@linaro.org>
+
+ * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
+ -fno-builtin. (CFLAGS-bench-ffsll.c): Likewise.
+
2014-04-01 Florian Weimer <fweimer@redhat.com>
[BZ #13347]
diff --git a/benchtests/Makefile b/benchtests/Makefile
index b184461..ca635cf 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -37,6 +37,9 @@ stdlib-bench := strtod
benchset := $(string-bench-all) $(stdlib-bench)
+CFLAGS-bench-ffs.c += -fno-builtin
+CFLAGS-bench-ffsll.c += -fno-builtin
+
LDLIBS-bench-acos = -lm
LDLIBS-bench-acosh = -lm
LDLIBS-bench-asin = -lm