diff options
author | Joseph Myers <joseph@codesourcery.com> | 2018-01-09 23:14:45 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2018-01-09 23:14:45 +0000 |
commit | b2584ac2a4d3d5ba7da01a52e6bbc495d61974c8 (patch) | |
tree | 1e69b5df2c69fa5c9e88bb5d205221db6bea309d /sysdeps/powerpc/nofpu | |
parent | e134ca175318e0f1c04b4e857f38efae091c35ce (diff) | |
download | glibc-b2584ac2a4d3d5ba7da01a52e6bbc495d61974c8.tar.gz glibc-b2584ac2a4d3d5ba7da01a52e6bbc495d61974c8.tar.xz glibc-b2584ac2a4d3d5ba7da01a52e6bbc495d61974c8.zip |
Fix powerpc-nofpu remainderl wrong sign of zero result (bug 22688).
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.
Diffstat (limited to 'sysdeps/powerpc/nofpu')
-rw-r--r-- | sysdeps/powerpc/nofpu/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/powerpc/nofpu/Makefile b/sysdeps/powerpc/nofpu/Makefile index 09ecdf1dcc..75b116c068 100644 --- a/sysdeps/powerpc/nofpu/Makefile +++ b/sysdeps/powerpc/nofpu/Makefile @@ -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 |