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-421-g6cbec75
- From: tschwinge at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 16 Mar 2013 13:00:20 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.17-421-g6cbec75
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 6cbec759de7941016b30a5e46bdef535657ed0eb (commit)
from aefc9b8c7c62ec25568ae9241db333436ae6860b (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://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=6cbec759de7941016b30a5e46bdef535657ed0eb
commit 6cbec759de7941016b30a5e46bdef535657ed0eb
Author: Thomas Schwinge <thomas@codesourcery.com>
Date: Fri Mar 15 17:41:11 2013 +0100
Move "-sNaN" value into a separate variable.
diff --git a/ChangeLog b/ChangeLog
index 4afd5f2..e931f27 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-16 Thomas Schwinge <thomas@codesourcery.com>
+
+ * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
+ variable.
+
2013-03-15 Roland McGrath <roland@hack.frob.com>
* elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
diff --git a/math/test-snan.c b/math/test-snan.c
index 6ec9414..83657ee 100644
--- a/math/test-snan.c
+++ b/math/test-snan.c
@@ -94,6 +94,7 @@ NAME (void) \
/* A sNaN is only guaranteed to be representable in variables with */ \
/* static (or thread-local) storage duration. */ \
static volatile FLOAT sNaN_var = __builtin_nans ## SUFFIX (""); \
+ static volatile FLOAT minus_sNaN_var = -__builtin_nans ## SUFFIX (""); \
fenv_t saved_fenv; \
\
zero_var = 0.0; \
@@ -105,6 +106,7 @@ NAME (void) \
(void) &one_var; \
(void) &qNaN_var; \
(void) &sNaN_var; \
+ (void) &minus_sNaN_var; \
(void) &Inf_var; \
\
set_sigaction_FP (); \
@@ -147,7 +149,7 @@ NAME (void) \
printf (#FLOAT " isnan (-sNaN) raised SIGFPE\n"); \
errors++; \
} else { \
- check (#FLOAT " isnan (-sNaN)", isnan (-sNaN_var)); \
+ check (#FLOAT " isnan (-sNaN)", isnan (minus_sNaN_var)); \
} \
\
feclearexcept(FE_ALL_EXCEPT); \
@@ -187,7 +189,7 @@ NAME (void) \
printf (#FLOAT " isinf (-sNaN) raised SIGFPE\n"); \
errors++; \
} else { \
- check (#FLOAT " isinf (-sNaN)", !isinf (-sNaN_var)); \
+ check (#FLOAT " isinf (-sNaN)", !isinf (minus_sNaN_var)); \
} \
\
feclearexcept(FE_ALL_EXCEPT); \
@@ -227,7 +229,7 @@ NAME (void) \
printf (#FLOAT " isfinite (-sNaN) raised SIGFPE\n"); \
errors++; \
} else { \
- check (#FLOAT " isfinite (-sNaN)", !isfinite (-sNaN_var)); \
+ check (#FLOAT " isfinite (-sNaN)", !isfinite (minus_sNaN_var)); \
} \
\
feclearexcept(FE_ALL_EXCEPT); \
@@ -267,7 +269,7 @@ NAME (void) \
printf (#FLOAT " isnormal (-sNaN) raised SIGFPE\n"); \
errors++; \
} else { \
- check (#FLOAT " isnormal (-sNaN)", !isnormal (-sNaN_var)); \
+ check (#FLOAT " isnormal (-sNaN)", !isnormal (minus_sNaN_var)); \
} \
\
feclearexcept(FE_ALL_EXCEPT); \
@@ -297,7 +299,7 @@ NAME (void) \
printf (#FLOAT " fpclassify (sNaN) isnormal SIGFPE\n"); \
errors++; \
} else { \
- check (#FLOAT " fpclassify (sNaN)", (fpclassify (sNaN_var)==FP_NAN)); \
+ check (#FLOAT " fpclassify (sNaN)", fpclassify (sNaN_var) == FP_NAN); \
} \
\
feclearexcept(FE_ALL_EXCEPT); \
@@ -307,7 +309,8 @@ NAME (void) \
printf (#FLOAT " fpclassify (-sNaN) raised SIGFPE\n"); \
errors++; \
} else { \
- check (#FLOAT " fpclassify (-sNaN)", (fpclassify (-sNaN_var)==FP_NAN)); \
+ check (#FLOAT " fpclassify (-sNaN)", \
+ fpclassify (minus_sNaN_var) == FP_NAN); \
} \
\
fesetenv(&saved_fenv); /* restore saved fenv */ \
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
math/test-snan.c | 15 +++++++++------
2 files changed, 14 insertions(+), 6 deletions(-)
hooks/post-receive
--
GNU C Library master sources