diff options
Diffstat (limited to 'm4-1.4.17-gnulib-ppc64le.patch')
-rw-r--r-- | m4-1.4.17-gnulib-ppc64le.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/m4-1.4.17-gnulib-ppc64le.patch b/m4-1.4.17-gnulib-ppc64le.patch new file mode 100644 index 0000000..698d5f4 --- /dev/null +++ b/m4-1.4.17-gnulib-ppc64le.patch @@ -0,0 +1,19 @@ +--- m4-1.4.17/tests/test-isnanl.h.ori ++++ m4-1.4.17/tests/test-isnanl.h +@@ -51,6 +51,15 @@ main () + /* A bit pattern that is different from a Quiet NaN. With a bit of luck, + it's a Signalling NaN. */ + { ++#if defined __powerpc__ && LDBL_MANT_DIG == 106 ++ /* This is PowerPC "double double", a pair of two doubles. Inf and Nan are ++ represented as the corresponding 64-bit IEEE values in the first double; ++ the second is ignored. Manipulate only the first double. */ ++ #undef NWORDS ++ #define NWORDS \ ++ ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) ++#endif ++ + memory_long_double m; + m.value = NaNl (); + # if LDBL_EXPBIT0_BIT > 0 + |