about summary refs log tree commit diff
path: root/benchtests/Makefile
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2018-03-15 15:44:58 +0000
committerWilco Dijkstra <wdijkstr@arm.com>2018-03-15 15:44:58 +0000
commitf1c8185d345e724f6c94242730dbe8c26ce99959 (patch)
treef5e1508a83faa1323ce621fe7ef75b146a8f3cd2 /benchtests/Makefile
parentb47c3e7637efb77818cbef55dcd0ed1f0ea0ddf1 (diff)
downloadglibc-f1c8185d345e724f6c94242730dbe8c26ce99959.tar.gz
glibc-f1c8185d345e724f6c94242730dbe8c26ce99959.tar.xz
glibc-f1c8185d345e724f6c94242730dbe8c26ce99959.zip
Use correct includes in benchtests
Currently the benchtests are run with internal GLIBC headers, which is incorrect.
Defining _ISOMAC in the makefile ensures the internal headers are bypassed.
Fix all tests which were relying on internal defines or includes.

	* benchtests/Makefile: Define _ISOMAC.
	* benchtests/bench-strcoll.c: Add missing sys/stat.h include.
	* benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
	* benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
	* benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
	* benchtests/bench-timing.h: Define attribute_hidden.
Diffstat (limited to 'benchtests/Makefile')
-rw-r--r--benchtests/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile
index ff99d25fbf..bcd6a9c26d 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -125,7 +125,7 @@ ifndef BENCH_DURATION
 BENCH_DURATION := 10
 endif
 
-CPPFLAGS-nonlib += -DDURATION=$(BENCH_DURATION)
+CPPFLAGS-nonlib += -DDURATION=$(BENCH_DURATION) -D_ISOMAC
 
 # Use clock_gettime to measure performance of functions.  The default is to use
 # HP_TIMING if it is available.