about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Ellcey <sellcey@caviumnetworks.com>2017-07-21 09:47:57 -0700
committerSteve Ellcey <sellcey@caviumnetworks.com>2017-07-21 09:47:57 -0700
commita4c9be1b8b5edd533d31e7f9a682b891f696bb91 (patch)
treedb7ba89725fdafdfe62438a06809edc192261a08
parent2d9b85e7e7b35b40682fdf8343ac0eccbae83985 (diff)
downloadglibc-a4c9be1b8b5edd533d31e7f9a682b891f696bb91.tar.gz
glibc-a4c9be1b8b5edd533d31e7f9a682b891f696bb91.tar.xz
glibc-a4c9be1b8b5edd533d31e7f9a682b891f696bb91.zip
Fix cexpl when compiled with latest GCC
	* sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Call
	math_force_eval.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/ieee754/ldbl-128/e_expl.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0f06fe4ce8..0a366fac72 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-07-21  Steve Ellcey  <sellcey@cavium.com>
+
+	* sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Call
+	math_force_eval.
+
 2017-07-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
 	* sysdeps/sparc/fpu/libm-test-ulps: Update.
diff --git a/sysdeps/ieee754/ldbl-128/e_expl.c b/sysdeps/ieee754/ldbl-128/e_expl.c
index 15639d1da1..fd7700c7fa 100644
--- a/sysdeps/ieee754/ldbl-128/e_expl.c
+++ b/sysdeps/ieee754/ldbl-128/e_expl.c
@@ -192,6 +192,7 @@ __ieee754_expl (_Float128 x)
 	 with maximum error in [-2^-16-2^-53,2^-16+2^-53]
 	 less than 4.8e-39.  */
       x22 = x + x*x*(P1+x*(P2+x*(P3+x*(P4+x*(P5+x*P6)))));
+      math_force_eval (x22);
 
       /* Return result.  */
       fesetenv (&oldenv);