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
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>2015-03-13 13:43:50 -0300
commitae75fdc50acbdcf5bfda6c3151c537f2ab8ce637 (patch)
tree3055cafc9fabc6d80dfbc681c0d6fdb989a04e27
parent47cb886328acf41612165a93e05af3db3d20ee17 (diff)
downloadglibc-ae75fdc50acbdcf5bfda6c3151c537f2ab8ce637.tar.gz
glibc-ae75fdc50acbdcf5bfda6c3151c537f2ab8ce637.tar.xz
glibc-ae75fdc50acbdcf5bfda6c3151c537f2ab8ce637.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 a7b9df12dc..f856a8aca2 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-02-23  Paul Pluzhnikov  <ppluzhnikov@google.com>
 
 	[BZ #16618]
diff --git a/NEWS b/NEWS
index 4f7d68f696..60ece7dab6 100644
--- a/NEWS
+++ b/NEWS
@@ -9,7 +9,7 @@ Version 2.20.1
 
 * The following bugs are resolved with this release:
 
-  16617, 16618, 17266, 17370, 17371, 17625, 17630.
+  16617, 16618, 17266, 17370, 17371, 17625, 17630, 18104.
 
 * Added support for TSX lock elision of pthread mutexes on powerpc32, powerpc64
   and powerpc64le.  This may improve lock scaling of existing programs on
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