]> sourceware.org Git - glibc.git/commitdiff
Fix powerpc-nofpu fmaxmagl, fminmagl spurious "invalid" exception (bug 22691).
authorJoseph Myers <joseph@codesourcery.com>
Wed, 10 Jan 2018 00:38:12 +0000 (00:38 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 10 Jan 2018 00:38:12 +0000 (00:38 +0000)
For soft-float powerpc, fmaxmagl and fminmagl generate spurious
"invalid" exceptions for quiet NaN arguments.  This is another case of
the problems with fabsl inline expansion via comparisons, and so is
fixed by building those functions with -fno-builtin-fabsl.

Tested for powerpc (soft-float).

[BZ #22691]
* sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
(CFLAGS-s_fmaxmagl.c): New variable.
[$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.

ChangeLog
sysdeps/powerpc/nofpu/Makefile

index 679a07762aef9f9293bc421cc733b14bcbf95bfb..8b752efd6497a101a29122de546006cbf9ede221 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
 
+       [BZ #22691]
+       * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
+       (CFLAGS-s_fmaxmagl.c): New variable.
+       [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
+
        [BZ #22690]
        * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
        long int for arguments of possibly overflowing addition or
index 75b116c0685bb119aee6e457e9dfdfabdccd6864..463338d5b3a9287d378a1f15ec7617b3e7c702f5 100644 (file)
@@ -47,4 +47,6 @@ 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
+CFLAGS-s_fmaxmagl.c += -fno-builtin-fabsl
+CFLAGS-s_fminmagl.c += -fno-builtin-fabsl
 endif
This page took 0.08358 seconds and 5 git commands to generate.