From 87ca49febaa3c4fb7e3ae465fd27e6129ae664ec Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 27 Apr 2008 22:51:28 +0200 Subject: [PATCH] Stricter test whether isnanl works. --- ChangeLog | 5 +++++ m4/isnanl.m4 | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8ae01efc4..391bb3f57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-04-27 Bruno Haible + * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on + quiet NaNs. + +2008-04-27 Bruno Haible + Make test-yesno.sh work on mingw. * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF. * tests/test-yesno.c: Include yesno.h first. Include binary-io.h. diff --git a/m4/isnanl.m4 b/m4/isnanl.m4 index c2bddc665..660a898a3 100644 --- a/m4/isnanl.m4 +++ b/m4/isnanl.m4 @@ -1,4 +1,4 @@ -# isnanl.m4 serial 6 +# isnanl.m4 serial 7 dnl Copyright (C) 2007-2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -134,6 +134,10 @@ int main () memory_long_double m; unsigned int i; + /* gcc-3.4.3 on IRIX 6.5 appears to have a problem with this. */ + if (!isnanl (0.0L / 0.0L)) + return 1; + /* The isnanl function should be immune against changes in the sign bit and in the mantissa bits. The xor operation twiddles a bit that can only be a sign bit or a mantissa bit (since the exponent never extends to -- 2.11.0