498bde
--- m4-1.4.17/tests/test-isnanl.h.ori
498bde
+++ m4-1.4.17/tests/test-isnanl.h
498bde
@@ -51,6 +51,15 @@ main ()
498bde
   /* A bit pattern that is different from a Quiet NaN.  With a bit of luck,
498bde
      it's a Signalling NaN.  */
498bde
   {
498bde
+#if defined __powerpc__ && LDBL_MANT_DIG == 106
498bde
+    /* This is PowerPC "double double", a pair of two doubles.  Inf and Nan are
498bde
+       represented as the corresponding 64-bit IEEE values in the first double;
498bde
+       the second is ignored.  Manipulate only the first double.  */
498bde
+    #undef NWORDS
498bde
+    #define NWORDS \
498bde
+      ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
498bde
+#endif
498bde
+
498bde
     memory_long_double m;
498bde
     m.value = NaNl ();
498bde
 # if LDBL_EXPBIT0_BIT > 0
498bde