benchtests: Build ffs and ffsl benchtests with -fno-builtin
authorWill Newton <will.newton@linaro.org>
Mon, 31 Mar 2014 14:58:19 +0000 (15:58 +0100)
committerWill Newton <will.newton@linaro.org>
Tue, 1 Apr 2014 11:50:41 +0000 (12:50 +0100)
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.

ChangeLog
benchtests/Makefile

index 1ef37c7..bfb3083 100644 (file)
--- 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]
index b184461..ca635cf 100644 (file)
@@ -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