]> sourceware.org Git - glibc.git/commitdiff
Fix powerpc-nofpu remainderl wrong sign of zero result (bug 22688).
authorJoseph Myers <joseph@codesourcery.com>
Tue, 9 Jan 2018 23:14:45 +0000 (23:14 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 9 Jan 2018 23:14:45 +0000 (23:14 +0000)
For soft-float powerpc, the remainderl function produces zero results
with the wrong sign for various inputs.  This is another instance of
the problem with incorrect built-in fabsl expansion, so is fixed by
this patch using -fno-builtin-fabsl for this function.

Tested for powerpc (soft-float).

[BZ #22688]
* sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
(CFLAGS-e_remainderl.c): New variable.

ChangeLog
sysdeps/powerpc/nofpu/Makefile

index ee77ccdc0956515c35c939184b408006c714099e..6fd4c5b6c0ece7e79dd26995eca38e7701de4fd7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
 
+       [BZ #22688]
+       * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
+       (CFLAGS-e_remainderl.c): New variable.
+
        [BZ #22687]
        * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
        variable.
index 09ecdf1dcc94414e26a0accdee3dd38f51560328..75b116c0685bb119aee6e457e9dfdfabdccd6864 100644 (file)
@@ -46,4 +46,5 @@ CFLAGS-w_j1l_compat.c += -fno-builtin-fabsl
 CFLAGS-e_lgammal_r.c += -fno-builtin-fabsl
 CFLAGS-e_log10l.c += -fno-builtin-fabsl
 CFLAGS-e_log2l.c += -fno-builtin-fabsl
+CFLAGS-e_remainderl.c += -fno-builtin-fabsl
 endif
This page took 0.077932 seconds and 5 git commands to generate.