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.29.9000-186-g6103c0a


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  6103c0a8116960527708e8fc030a6c043cf51bb5 (commit)
      from  333221862ecbebde60dd16e7ca17d26444e62f50 (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=6103c0a8116960527708e8fc030a6c043cf51bb5

commit 6103c0a8116960527708e8fc030a6c043cf51bb5
Author: Wilco Dijkstra <wdijkstr@arm.com>
Date:   Tue Apr 9 11:38:24 2019 +0100

    Remove TIMING_INIT
    
    Remove TIMING_INIT since it's no longer used.
    
    	* benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
    	* benchtests/bench-malloc-thread.c: Likewise.
    	* benchtests/bench-skeleton.c: Likewise.
    	* benchtests/bench-strtod.c: Likewise.
    	* benchtests/bench-timing.h: Likewise.

diff --git a/ChangeLog b/ChangeLog
index 6b7f19a..fbab246 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
+
+	* benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
+	* benchtests/bench-malloc-thread.c: Likewise.
+	* benchtests/bench-skeleton.c: Likewise.
+	* benchtests/bench-strtod.c: Likewise.
+	* benchtests/bench-timing.h: Likewise.
+
 2019-04-08  Florian Weimer  <fweimer@redhat.com>
 
 	* resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
diff --git a/benchtests/bench-malloc-simple.c b/benchtests/bench-malloc-simple.c
index 83203ff..b8bb2cc 100644
--- a/benchtests/bench-malloc-simple.c
+++ b/benchtests/bench-malloc-simple.c
@@ -86,9 +86,6 @@ bench (unsigned long size)
 {
   size_t iters = NUM_ITERS;
   int **arr = (int**) malloc (MAX_ALLOCS * sizeof (void*));
-  unsigned long res;
-
-  TIMING_INIT (res);
 
   for (int t = 0; t <= 3; t++)
     for (int i = 0; i < NUM_ALLOCS; i++)
diff --git a/benchtests/bench-malloc-thread.c b/benchtests/bench-malloc-thread.c
index bb4ba72..5226142 100644
--- a/benchtests/bench-malloc-thread.c
+++ b/benchtests/bench-malloc-thread.c
@@ -225,7 +225,6 @@ main (int argc, char **argv)
 {
   timing_t cur;
   size_t iters = 0, num_threads = 1;
-  unsigned long res;
   json_ctx_t json_ctx;
   double d_total_s, d_total_i;
   struct sigaction act;
@@ -261,10 +260,6 @@ main (int argc, char **argv)
 
   json_attr_object_begin (&json_ctx, "");
 
-  TIMING_INIT (res);
-
-  (void) res;
-
   memset (&act, 0, sizeof (act));
   act.sa_handler = &alarm_handler;
 
diff --git a/benchtests/bench-skeleton.c b/benchtests/bench-skeleton.c
index 37625c4..854151e 100644
--- a/benchtests/bench-skeleton.c
+++ b/benchtests/bench-skeleton.c
@@ -48,14 +48,11 @@ main (int argc, char **argv)
 
   memset (&runtime, 0, sizeof (runtime));
 
-  unsigned long iters, res;
+  unsigned long iters = 1000;
 
 #ifdef BENCH_INIT
   BENCH_INIT ();
 #endif
-  TIMING_INIT (res);
-
-  iters = 1000 * res;
 
   json_init (&json_ctx, 2, stdout);
 
diff --git a/benchtests/bench-strtod.c b/benchtests/bench-strtod.c
index 4de0b9a..d5b2503 100644
--- a/benchtests/bench-strtod.c
+++ b/benchtests/bench-strtod.c
@@ -89,9 +89,6 @@ int
 do_bench (void)
 {
   const size_t iters = INNER_LOOP_ITERS;
-  timing_t res __attribute__ ((unused));
-
-  TIMING_INIT (res);
 
   for (size_t i = 0; inputs[i] != NULL; ++i)
     {
diff --git a/benchtests/bench-timing.h b/benchtests/bench-timing.h
index e213dec..d068bf9 100644
--- a/benchtests/bench-timing.h
+++ b/benchtests/bench-timing.h
@@ -28,8 +28,6 @@ typedef hp_timing_t timing_t;
 
 #define TIMING_TYPE "hp_timing"
 
-#define TIMING_INIT(res) ({ (res) = 1; })
-
 #define TIMING_NOW(var) HP_TIMING_NOW (var)
 #define TIMING_DIFF(diff, start, end) HP_TIMING_DIFF ((diff), (start), (end))
 #define TIMING_ACCUM(sum, diff) HP_TIMING_ACCUM_NT ((sum), (diff))

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

Summary of changes:
 ChangeLog                        |    8 ++++++++
 benchtests/bench-malloc-simple.c |    3 ---
 benchtests/bench-malloc-thread.c |    5 -----
 benchtests/bench-skeleton.c      |    5 +----
 benchtests/bench-strtod.c        |    3 ---
 benchtests/bench-timing.h        |    2 --
 6 files changed, 9 insertions(+), 17 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]