]> sourceware.org Git - glibc.git/commitdiff
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 1ef37c7eda6757a00703f3725dae13bbc1ef4030..bfb30834fc15d6e839f0ac12984b1dba80819c75 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 b184461ffdf2a5e2b67b07cdc33854e24f0cfd9d..ca635cfe85b33ed303eb46b76d15058fa084b1ad 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
This page took 0.117981 seconds and 5 git commands to generate.