From cd09e62308b410bba8ac98dc6f5a9438b8e16dac Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Tue, 10 Mar 2015 09:38:54 -0400 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ NEWS | 2 +- sysdeps/ieee754/dbl-64/Makefile | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7d203366c95..9533b240af6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-03-10 Adhemerval Zanella + + * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add + $(config-cflags-nofma). + 2015-02-05 Paul Pluzhnikov [BZ #16618] diff --git a/NEWS b/NEWS index 5dba8c893eb..98d764af666 100644 --- a/NEWS +++ b/NEWS @@ -11,7 +11,7 @@ Version 2.19.1 16545, 16617, 16618, 16683, 16689, 16701, 16706, 16707, 16739, 16815, 16619, 16740, 17031, 17048, 17137, 17153, 17187, 17213, 17325, 17625, - 17630. + 17630, 18104. * CVE-2104-7817 The wordexp function could ignore the WRDE_NOCMD flag under certain input conditions resulting in the execution of a shell for diff --git a/sysdeps/ieee754/dbl-64/Makefile b/sysdeps/ieee754/dbl-64/Makefile index 35f545ff8e4..5557c75b458 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 -- 2.47.2