diff options
author | Bruno Haible <bruno@clisp.org> | 2008-04-27 22:51:28 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2008-04-27 22:51:28 +0200 |
commit | 87ca49febaa3c4fb7e3ae465fd27e6129ae664ec (patch) | |
tree | f4ffb900b8b9efcf15623e979c8a47be9ea150b5 /m4 | |
parent | d51d502c49efdd8e625873420a19e69f63f9fec5 (diff) | |
download | gnulib-87ca49febaa3c4fb7e3ae465fd27e6129ae664ec.tar.gz |
Stricter test whether isnanl works.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/isnanl.m4 | 6 |
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 |