This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.27.9000-200-gf1c8185


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  f1c8185d345e724f6c94242730dbe8c26ce99959 (commit)
      from  b47c3e7637efb77818cbef55dcd0ed1f0ea0ddf1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=f1c8185d345e724f6c94242730dbe8c26ce99959

commit f1c8185d345e724f6c94242730dbe8c26ce99959
Author: Wilco Dijkstra <wdijkstr@arm.com>
Date:   Thu Mar 15 15:44:58 2018 +0000

    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.

diff --git a/ChangeLog b/ChangeLog
index 38154c2..ca38d1d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
+
+	* 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.
+
 2018-03-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
 
 	* sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
diff --git a/benchtests/Makefile b/benchtests/Makefile
index ff99d25..bcd6a9c 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.
diff --git a/benchtests/bench-strcoll.c b/benchtests/bench-strcoll.c
index 4a0b871..ac7f32f 100644
--- a/benchtests/bench-strcoll.c
+++ b/benchtests/bench-strcoll.c
@@ -22,6 +22,7 @@
 #include <stdlib.h>
 #include <locale.h>
 #include <unistd.h>
+#include <sys/stat.h>
 #include "json-lib.h"
 #include "bench-timing.h"
 #include <string.h>
diff --git a/benchtests/bench-string.h b/benchtests/bench-string.h
index 6be6956..94aaafd 100644
--- a/benchtests/bench-string.h
+++ b/benchtests/bench-string.h
@@ -19,6 +19,16 @@
 #include <getopt.h>
 #include <sys/cdefs.h>
 
+/* We are compiled under _ISOMAC, so libc-symbols.h does not do this
+   for us.  */
+#include "config.h"
+#ifdef HAVE_CC_INHIBIT_LOOP_TO_LIBCALL
+# define inhibit_loop_to_libcall \
+    __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
+#else
+# define inhibit_loop_to_libcall
+#endif
+
 typedef struct
 {
   const char *name;
diff --git a/benchtests/bench-strstr.c b/benchtests/bench-strstr.c
index 86d5e82..c30cd10 100644
--- a/benchtests/bench-strstr.c
+++ b/benchtests/bench-strstr.c
@@ -22,6 +22,7 @@
 
 
 #define STRSTR simple_strstr
+#define libc_hidden_builtin_def(X)
 #include "../string/strstr.c"
 
 
diff --git a/benchtests/bench-strtok.c b/benchtests/bench-strtok.c
index d01c576..ba8c2dc 100644
--- a/benchtests/bench-strtok.c
+++ b/benchtests/bench-strtok.c
@@ -42,7 +42,7 @@ oldstrtok (char *s, const char *delim)
   s = strpbrk (token, delim);
   if (s == NULL)
     /* This token finishes the string.  */
-    olds = __rawmemchr (token, '\0');
+    olds = rawmemchr (token, '\0');
   else
     {
       /* Terminate the token and make OLDS point past it.  */
diff --git a/benchtests/bench-timing.h b/benchtests/bench-timing.h
index bcba131..b9ea04b 100644
--- a/benchtests/bench-timing.h
+++ b/benchtests/bench-timing.h
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#define attribute_hidden
 #include <hp-timing.h>
 #include <stdint.h>
 

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                  |    9 +++++++++
 benchtests/Makefile        |    2 +-
 benchtests/bench-strcoll.c |    1 +
 benchtests/bench-string.h  |   10 ++++++++++
 benchtests/bench-strstr.c  |    1 +
 benchtests/bench-strtok.c  |    2 +-
 benchtests/bench-timing.h  |    1 +
 7 files changed, 24 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]