diff options
author | Andreas Schwab <schwab@suse.de> | 2016-02-23 16:27:56 +0100 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2016-02-24 11:59:42 +0100 |
commit | 8dfdd0794a1197864776a8ce5d30a1dc6344f8a4 (patch) | |
tree | 1347a73759073e6e50a43fc9c6308f74c9e9f460 | |
parent | b2e722855b4599cdcc5dfc98e9d28e3825ecbe33 (diff) | |
download | glibc-8dfdd0794a1197864776a8ce5d30a1dc6344f8a4.tar.gz glibc-8dfdd0794a1197864776a8ce5d30a1dc6344f8a4.tar.xz glibc-8dfdd0794a1197864776a8ce5d30a1dc6344f8a4.zip |
Don't use long double math functions if NO_LONG_DOUBLE
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | math/test-math-isinff.cc | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index fbe987fe23..4d4840da75 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-02-24 Andreas Schwab <schwab@suse.de> + + * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl + if !NO_LONG_DOUBLE. + 2016-02-22 Roland McGrath <roland@hack.frob.com> * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23, diff --git a/math/test-math-isinff.cc b/math/test-math-isinff.cc index 195d753f0e..ecff1dc46a 100644 --- a/math/test-math-isinff.cc +++ b/math/test-math-isinff.cc @@ -30,12 +30,17 @@ do_test (void) header fix this test will not compile. */ if (isinff (1.0f) || !isinff (INFINITY) +#ifndef NO_LONG_DOUBLE || isinfl (1.0L) || !isinfl (INFINITY) +#endif || isnanf (2.0f) || !isnanf (NAN) +#ifndef NO_LONG_DOUBLE || isnanl (2.0L) - || !isnanl (NAN)) + || !isnanl (NAN) +#endif + ) { printf ("FAIL: Failed to call is* functions.\n"); exit (1); |