From: Joseph Myers Date: Fri, 21 Oct 2016 21:18:03 +0000 (+0000) Subject: Use -fno-builtin for sqrt benchmark. X-Git-Tag: glibc-2.25~394 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a8330c01bea0cb98654ca25e3ca5db7d48694b3;p=thirdparty%2Fglibc.git Use -fno-builtin for sqrt benchmark. This patch makes the sqrt benchmark use -fno-builtin, as already done for benchmarks of ffs and ffsll, so that it actually benchmarks the glibc function as (presumably) intended even in the presence of the compiler inlining sqrt. Tested for x86_64 and also used for benchmarking my ARM sqrt patch. * benchtests/Makefile (CFLAGS-bench-sqrt.c): New variable. --- diff --git a/ChangeLog b/ChangeLog index d2b0b765785..e41c3e73307 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-10-21 Joseph Myers + + * benchtests/Makefile (CFLAGS-bench-sqrt.c): New variable. + 2016-10-21 Paul E. Murphy * sysdeps/powerpc/fpu/fenv_private.h: diff --git a/benchtests/Makefile b/benchtests/Makefile index 144b32ea389..5a61522689c 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -72,6 +72,7 @@ benchset := $(string-benchset-all) $(stdlib-benchset) $(stdio-common-benchset) \ CFLAGS-bench-ffs.c += -fno-builtin CFLAGS-bench-ffsll.c += -fno-builtin +CFLAGS-bench-sqrt.c += -fno-builtin bench-malloc := malloc-thread