about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2015-03-10 09:38:54 -0400
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2015-03-10 09:38:54 -0400
commitd421868bb85d1459b1d2df520bb26f3e11aa195a (patch)
tree6be6d29a46aade57f875afb7de291b547059c64b
parenta2f8be9c834cb513666e0ce02ee8f4b4a3f358f8 (diff)
downloadglibc-d421868bb85d1459b1d2df520bb26f3e11aa195a.tar.gz
glibc-d421868bb85d1459b1d2df520bb26f3e11aa195a.tar.xz
glibc-d421868bb85d1459b1d2df520bb26f3e11aa195a.zip
powerpc: Fix incorrect results for pow when using FMA
This patch adds no FMA generation for e_pow to avoid precision issues
for powerpc.  This fixes BZ#18104.
-rw-r--r--ChangeLog5
-rw-r--r--NEWS2
-rw-r--r--sysdeps/ieee754/dbl-64/Makefile1
3 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0298c1d426..8c62a3e533 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
+
+	* sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
+	$(config-cflags-nofma).
+
 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
 
 	* soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
diff --git a/NEWS b/NEWS
index 5e5ddcdb3d..0e224ac41b 100644
--- a/NEWS
+++ b/NEWS
@@ -13,7 +13,7 @@ Version 2.22
   16560, 16783, 17269, 17523, 17569, 17588, 17631, 17711, 17776, 17779,
   17792, 17836, 17912, 17916, 17932, 17944, 17949, 17964, 17965, 17967,
   17969, 17978, 17987, 17991, 17996, 17998, 17999, 18019, 18020, 18029,
-  18030, 18032, 18036, 18038, 18039, 18042, 18043, 18046, 18047.
+  18030, 18032, 18036, 18038, 18039, 18042, 18043, 18046, 18047, 18104.
 
 * Character encoding and ctype tables were updated to Unicode 7.0.0, using
   new generator scripts contributed by Pravin Satpute and Mike FABIAN (Red
diff --git a/sysdeps/ieee754/dbl-64/Makefile b/sysdeps/ieee754/dbl-64/Makefile
index 35f545ff8e..5557c75b45 100644
--- a/sysdeps/ieee754/dbl-64/Makefile
+++ b/sysdeps/ieee754/dbl-64/Makefile
@@ -2,4 +2,5 @@ ifeq ($(subdir),math)
 # branred depends on precise IEEE double rounding
 CFLAGS-branred.c = $(config-cflags-nofma)
 CFLAGS-e_sqrt.c = $(config-cflags-nofma)
+CFLAGS-e_pow.c = $(config-cflags-nofma)
 endif