about summary refs log tree commit diff
path: root/benchtests
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 /benchtests
parent13f7fe35ae2b0ea55dc4b9628763aafdc8bdc30c (diff)
downloadglibc-f6c557968c248b4554e708bd08983f0908ac09f1.tar.gz
glibc-f6c557968c248b4554e708bd08983f0908ac09f1.tar.xz
glibc-f6c557968c248b4554e708bd08983f0908ac09f1.zip
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.
Diffstat (limited to 'benchtests')
-rw-r--r--benchtests/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile
index b184461ffd..ca635cfe85 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