Blame SOURCES/coreutils-8.22-ppc64le.patch

dd59ef
diff -up coreutils-8.22/gnulib-tests/test-isnanl.h.ppc coreutils-8.22/gnulib-tests/test-isnanl.h
dd59ef
--- coreutils-8.22/gnulib-tests/test-isnanl.h.ppc	2014-06-23 14:01:05.925541920 +0200
dd59ef
+++ coreutils-8.22/gnulib-tests/test-isnanl.h	2014-06-23 14:01:39.437617584 +0200
dd59ef
@@ -51,6 +51,15 @@ main ()
dd59ef
   /* A bit pattern that is different from a Quiet NaN.  With a bit of luck,
dd59ef
      it's a Signalling NaN.  */
dd59ef
   {
dd59ef
+#if defined __powerpc__ && LDBL_MANT_DIG == 106
dd59ef
+    /* This is PowerPC "double double", a pair of two doubles.  Inf and Nan are
dd59ef
+       represented as the corresponding 64-bit IEEE values in the first double;
dd59ef
+       the second is ignored.  Manipulate only the first double.  */
dd59ef
+    #undef NWORDS
dd59ef
+    #define NWORDS \
dd59ef
+      ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
dd59ef
+#endif
dd59ef
+
dd59ef
     memory_long_double m;
dd59ef
     m.value = NaNl ();
dd59ef
 # if LDBL_EXPBIT0_BIT > 0
dd59ef
diff -up coreutils-8.22/gnulib-tests/test-signbit.c.ppc coreutils-8.22/gnulib-tests/test-signbit.c
dd59ef
--- coreutils-8.22/gnulib-tests/test-signbit.c.ppc	2013-12-04 15:53:33.000000000 +0100
dd59ef
+++ coreutils-8.22/gnulib-tests/test-signbit.c	2014-06-23 13:59:20.378307385 +0200
dd59ef
@@ -151,6 +151,16 @@ test_signbitl ()
dd59ef
     #define NWORDS \
dd59ef
       ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
dd59ef
     typedef union { long double value; unsigned int word[NWORDS]; } memory_long_double;
dd59ef
+
dd59ef
+#if defined __powerpc__ && LDBL_MANT_DIG == 106
dd59ef
+    /* This is PowerPC "double double", a pair of two doubles.  Inf and Nan are
dd59ef
+       represented as the corresponding 64-bit IEEE values in the first double;
dd59ef
+       the second is ignored.  Manipulate only the first double.  */
dd59ef
+    #undef NWORDS
dd59ef
+    #define NWORDS \
dd59ef
+      ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
dd59ef
+#endif
dd59ef
+
dd59ef
     memory_long_double m;
dd59ef
     m.value = zerol / zerol;
dd59ef
 # if LDBL_EXPBIT0_BIT > 0