]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
powerpc: Fix incorrect results for pow when using FMA
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Tue, 10 Mar 2015 13:38:54 +0000 (09:38 -0400)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Fri, 13 Mar 2015 16:43:50 +0000 (13:43 -0300)
This patch adds no FMA generation for e_pow to avoid precision issues
for powerpc.  This fixes BZ#18104.

ChangeLog
NEWS
sysdeps/ieee754/dbl-64/Makefile

index a7b9df12dc8feab92a594ae02c0f405ae1be0504..f856a8aca238a461786d466bcd58c2199a71d078 100644 (file)
--- 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 4f7d68f696b94ca462f3e5329c06e9fc2024efef..60ece7dab669245bcf41894b55053c46daa21abb 100644 (file)
--- 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
index 35f545ff8e459342a6d8eb27494cc25383bea51f..5557c75b4581a27c6a6818c7d3c6463f5de43635 100644 (file)
@@ -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