diff options
author | Will Newton <will.newton@linaro.org> | 2014-03-31 15:58:19 +0100 |
---|---|---|
committer | Will Newton <will.newton@linaro.org> | 2014-04-01 12:50:41 +0100 |
commit | f6c557968c248b4554e708bd08983f0908ac09f1 (patch) | |
tree | 491643a2da0962f73823cbf6e383207c2d4f103f | |
parent | 13f7fe35ae2b0ea55dc4b9628763aafdc8bdc30c (diff) | |
download | glibc-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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | benchtests/Makefile | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 1ef37c7eda..bfb30834fc 100644 --- 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] 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 |