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.20-52-gdc6fe23
- From: willnewton at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 30 Sep 2014 14:04:45 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.20-52-gdc6fe23
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 dc6fe23ba65714781a3d26270c132c0ca0ca5beb (commit)
via 85bb81c91b9cf7495aa4d7e567eae2861f54b997 (commit)
from b7e02da4e9c426c61d535aa96b0cf0b296e2e25c (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=dc6fe23ba65714781a3d26270c132c0ca0ca5beb
commit dc6fe23ba65714781a3d26270c132c0ca0ca5beb
Author: Will Newton <will.newton@linaro.org>
Date: Tue Sep 16 12:37:04 2014 -0700
stdlib/tst-strtod-round.c: Fix build on ARM
Building this test on ARM fails because the prototypes for the long
double variants of the math functions are unavailable.
Add an additional include guard to math.h that enables long double math
function declarations if _LIBC_TEST is defined and define _LIBC_TEST in
stdlib/tst-strtod-round.c.
ChangeLog:
2014-09-30 Will Newton <will.newton@linaro.org>
* math/math.h: Define long double math functions if
_LIBC_TEST is defined.
* stdlib/tst-strtod-round.c: Define _LIBC_TEST.
diff --git a/ChangeLog b/ChangeLog
index eaadc87..d7580c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2014-09-30 Will Newton <will.newton@linaro.org>
+ * math/math.h: Define long double math functions if
+ _LIBC_TEST is defined.
+ * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
+
* localedata/Makefile: Move assignment to tests-special
into an ifdef testing run-built-tests.
* timezone/Makefile: Likewise.
diff --git a/math/math.h b/math/math.h
index 72ec2ca..dc532b7 100644
--- a/math/math.h
+++ b/math/math.h
@@ -92,7 +92,8 @@ __BEGIN_DECLS
# undef __MATH_PRECNAME
# if !(defined __NO_LONG_DOUBLE_MATH && defined _LIBC) \
- || defined __LDBL_COMPAT
+ || defined __LDBL_COMPAT \
+ || defined _LIBC_TEST
# ifdef __LDBL_COMPAT
# ifdef __USE_ISOC99
diff --git a/stdlib/tst-strtod-round.c b/stdlib/tst-strtod-round.c
index f334b20..cbde457 100644
--- a/stdlib/tst-strtod-round.c
+++ b/stdlib/tst-strtod-round.c
@@ -17,6 +17,9 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
+/* Defining _LIBC_TEST ensures long double math functions are
+ declared in the headers. */
+#define _LIBC_TEST 1
#include <fenv.h>
#include <float.h>
#include <math.h>
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=85bb81c91b9cf7495aa4d7e567eae2861f54b997
commit 85bb81c91b9cf7495aa4d7e567eae2861f54b997
Author: Will Newton <will.newton@linaro.org>
Date: Tue Sep 16 12:32:55 2014 -0700
Allow cross-building of tests
Allow building tests in a cross configuration without a test wrapper
defined. This is helpful for doing simple build testing of tests.
ChangeLog:
2014-09-30 Will Newton <will.newton@linaro.org>
* localedata/Makefile: Move assignment to tests-special
into an ifdef testing run-built-tests.
* timezone/Makefile: Likewise.
diff --git a/ChangeLog b/ChangeLog
index 9acecce..eaadc87 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-09-30 Will Newton <will.newton@linaro.org>
+
+ * localedata/Makefile: Move assignment to tests-special
+ into an ifdef testing run-built-tests.
+ * timezone/Makefile: Likewise.
+
2014-09-29 Joseph Myers <joseph@codesourcery.com>
* sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
diff --git a/localedata/Makefile b/localedata/Makefile
index b6235f2..c2c62a2 100644
--- a/localedata/Makefile
+++ b/localedata/Makefile
@@ -92,14 +92,14 @@ install-others := $(addprefix $(inst_i18ndir)/, \
tests: $(objdir)/iconvdata/gconv-modules
+tests-static += tst-langinfo-static
+
+ifeq ($(run-built-tests),yes)
tests-special += $(objpfx)sort-test.out $(objpfx)tst-fmon.out \
$(objpfx)tst-locale.out $(objpfx)tst-rpmatch.out \
$(objpfx)tst-trans.out $(objpfx)tst-ctype.out \
$(objpfx)tst-langinfo.out $(objpfx)tst-langinfo-static.out \
$(objpfx)tst-numeric.out
-tests-static += tst-langinfo-static
-
-ifeq ($(run-built-tests),yes)
# We have to generate locales
LOCALES := de_DE.ISO-8859-1 de_DE.UTF-8 en_US.ANSI_X3.4-1968 \
en_US.ISO-8859-1 en_US.UTF-8 ja_JP.EUC-JP da_DK.ISO-8859-1 \
diff --git a/timezone/Makefile b/timezone/Makefile
index 66b59ce..ad76e48 100644
--- a/timezone/Makefile
+++ b/timezone/Makefile
@@ -45,11 +45,13 @@ generated += tzselect
testdata = $(objpfx)testdata
+ifeq ($(run-built-tests),yes)
# List zones generated by separate commands running zic on the host.
# Each such zic run counts as a separate test.
test-zones := America/New_York Etc/UTC UTC Europe/Berlin \
Australia/Melbourne America/Sao_Paulo Asia/Tokyo
tests-special += $(addprefix $(testdata)/, $(test-zones))
+endif
include ../Rules
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 ++++++++++
localedata/Makefile | 6 +++---
math/math.h | 3 ++-
stdlib/tst-strtod-round.c | 3 +++
timezone/Makefile | 2 ++
5 files changed, 20 insertions(+), 4 deletions(-)
hooks/post-receive
--
GNU C Library master sources