From f6c557968c248b4554e708bd08983f0908ac09f1 Mon Sep 17 00:00:00 2001 From: Will Newton Date: Mon, 31 Mar 2014 15:58:19 +0100 Subject: 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 * benchtests/Makefile (CFLAGS-bench-ffs.c): Add -fno-builtin. (CFLAGS-bench-ffsll.c): Likewise. --- ChangeLog | 5 +++++ benchtests/Makefile | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1ef37c7eda..bfb30834fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-04-01 Will Newton + + * benchtests/Makefile (CFLAGS-bench-ffs.c): Add + -fno-builtin. (CFLAGS-bench-ffsll.c): Likewise. + 2014-04-01 Florian Weimer [BZ #13347] 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 -- cgit 1.4.1