summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-04-27 22:51:28 +0200
committerBruno Haible <bruno@clisp.org>2008-04-27 22:51:28 +0200
commit87ca49febaa3c4fb7e3ae465fd27e6129ae664ec (patch)
treef4ffb900b8b9efcf15623e979c8a47be9ea150b5 /m4
parentd51d502c49efdd8e625873420a19e69f63f9fec5 (diff)
downloadgnulib-87ca49febaa3c4fb7e3ae465fd27e6129ae664ec.tar.gz
Stricter test whether isnanl works.
Diffstat (limited to 'm4')
-rw-r--r--m4/isnanl.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/m4/isnanl.m4 b/m4/isnanl.m4
index c2bddc665a..660a898a3d 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