From 22562bb222a91e0ecc416b19accd98e10c0d26be Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 3 Jan 2014 20:56:18 +0000 Subject: Fix soft-float ldbl-128ibm atan2l signs of zero results (bug 16390). This patch fixes bug 16390, incorrect signs of zero results from ldbl-128ibm atan2l, soft-float only. The problem is a longstanding GCC bug with fabsl not being correct for signed zero for soft float, and the fix is using -fno-builtin-fabsl as a workaround, as already done for various other source files. Tested powerpc-nofpu. * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math] (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl. --- sysdeps/powerpc/nofpu/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'sysdeps/powerpc/nofpu') diff --git a/sysdeps/powerpc/nofpu/Makefile b/sysdeps/powerpc/nofpu/Makefile index 9de7c43..99761ef 100644 --- a/sysdeps/powerpc/nofpu/Makefile +++ b/sysdeps/powerpc/nofpu/Makefile @@ -15,6 +15,7 @@ CPPFLAGS += -I../soft-fp/ # gcc-4.1.1 and may be too late for gcc-4.2. So we need these flags # until the fix in a gcc release and glibc drops support for earlier # versions of gcc. +CFLAGS-e_atan2l.c += -fno-builtin-fabsl CFLAGS-e_hypotl.c += -fno-builtin-fabsl CFLAGS-e_powl.c += -fno-builtin-fabsl CFLAGS-s_ccoshl.c += -fno-builtin-fabsl -- cgit v1.1