This is a live mirror of the Perl 5 development currently hosted at
Also IRIX seems to have NaN comparison issues.
authorJarkko Hietaniemi <>
Tue, 27 Oct 2015 12:45:28 +0000 (08:45 -0400)
committerJarkko Hietaniemi <>
Tue, 27 Oct 2015 20:40:23 +0000 (16:40 -0400)
The issues seem to be much harder to trigger (harder than in VC6 or
Tru64, that is), though: the perl #125298 is the only spot where
the problem has surfaced so far.  Though see also perl #126396,
with long doubles (the #125298 is with plain doubles).

All tests pass now in IRIX in blead with default config,
including the t/op/infnan.t.  With -Duselongdouble nothing
new breaks (known issues with locales and M::BI)


diff --git a/perl.h b/perl.h
index 27afddb..b6c14b5 100644 (file)
--- a/perl.h
+++ b/perl.h
@@ -1868,6 +1868,9 @@ typedef NVTYPE NV;
 /* Also Tru64 cc has broken NaN comparisons. */
+#if defined(__sgi)
 #   ifdef I_SUNMATH