summaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-06 10:04:05 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-06 10:04:05 +0000
commit8343a9351977478f4a535200a8ef0b68ee48309c (patch)
tree02be057d0665161b6c2fa0ed16400027c561bac9 /libgfortran
parent796f6cba70acaf91b919afd96e90d007374ae8a8 (diff)
downloadgcc-8343a9351977478f4a535200a8ef0b68ee48309c.tar.gz
Provide _M_2_SQRTPI if missing.
* intrinsics/erfc_scaled.c (_M_2_SQRTPI): Define if missing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205731 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog4
-rw-r--r--libgfortran/intrinsics/erfc_scaled.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index a428205e562..02524ad3539 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,7 @@
+2013-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * intrinsics/erfc_scaled.c (_M_2_SQRTPI): Define if missing.
+
2013-12-01 Uros Bizjak <ubizjak@gmail.com>
PR libfortran/59313
diff --git a/libgfortran/intrinsics/erfc_scaled.c b/libgfortran/intrinsics/erfc_scaled.c
index 0498508a5bb..02a2c15ace3 100644
--- a/libgfortran/intrinsics/erfc_scaled.c
+++ b/libgfortran/intrinsics/erfc_scaled.c
@@ -61,6 +61,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#else
# define _THRESH -106.566990228185312813205074546585730L
+# ifndef M_2_SQRTPIl
+# define M_2_SQRTPIl 1.128379167095512573896158903121545172L
+# endif
# define _M_2_SQRTPI M_2_SQRTPIl
# define _INF __builtin_infl()
# ifdef HAVE_ERFCL