Rainer Orth wrote:
Unfortunately, this breaks Solaris/SPARC bootstrap:
/vol/gcc/src/hg/trunk/local/libgfortran/intrinsics/erfc_scaled.c:64:22: error:
'M_2_SQRTPIl' undeclared (first use in this function)
# define _M_2_SQRTPI M_2_SQRTPIl
It seems M_2_SQRTPI[lq] are GNU extensions, thus missing in Solaris
<math.h>. The following patch at least allows Solaris bootstrap to
continue:
The patch is looks good to me.
diff --git a/libgfortran/intrinsics/erfc_scaled.c
b/libgfortran/intrinsics/erfc_scaled.c
+# ifndef M_2_SQRTPIl
+# define M_2_SQRTPIl 1.128379167095512573896158903121545172L
+# endif
I suppose the same should be done for M_2_SQRTPIq?
I don't think so. That's defined in libquadmath's quadmath.h, which is
part of GCC.
Tobias