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.
This commit is contained in:
Will Newton 2014-03-31 15:58:19 +01:00
parent 13f7fe35ae
commit f6c557968c
2 changed files with 8 additions and 0 deletions

View file

@ -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]

View 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