This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.17-453-g3775a8b
- From: siddhesh at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 21 Mar 2013 11:06:41 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.17-453-g3775a8b
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 3775a8bc2d2e0c29c8a7e673f5f42537ced2b3c7 (commit)
from 0a1b2ae6f6d511519ab3c0ccbf54982ae65bc444 (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=3775a8bc2d2e0c29c8a7e673f5f42537ced2b3c7
commit 3775a8bc2d2e0c29c8a7e673f5f42537ced2b3c7
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date: Thu Mar 21 16:35:48 2013 +0530
Allow adding of arbitrary code to benchmark tests
This allows us to define custom functions in C code files and
benchmark scenarios rather than just functions. The main current use
of this is to separate the slow and fast path benchmarks for math
functions.
diff --git a/ChangeLog b/ChangeLog
index 858b9fa..3ffaa38 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-21 Siddhesh Poyarekar <siddhesh@redhat.com>
+
+ * Rules ($(objpfx)bench-%.c): Include code from a C source
+ file.
+
2013-03-21 Joseph Myers <joseph@codesourcery.com>
[BZ #15287]
diff --git a/Rules b/Rules
index bc5dacd..02cdb4a 100644
--- a/Rules
+++ b/Rules
@@ -210,8 +210,12 @@ $(binaries-bench): %: %.o \
$(+link)
$(objpfx)bench-%.c: %-inputs bench-skeleton.c
+ { if [ -n "$($*-INCLUDE)" ]; then \
+ cat $($*-INCLUDE); \
+ fi; \
$(..)scripts/bench.pl $(patsubst %-inputs,%,$<) \
- $($*-ITER) $($*-ARGLIST) $($*-RET) > $@
+ $($*-ITER) $($*-ARGLIST) $($*-RET); } > $@-tmp
+ mv -f $@-tmp $@
.PHONY: distclean realclean subdir_distclean subdir_realclean \
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
Rules | 6 +++++-
2 files changed, 10 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources