public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Fix powerpc-nofpu fmaxmagl, fminmagl spurious "invalid" exception (bug 22691) [committed]
@ 2018-01-10  0:39 Joseph Myers
  0 siblings, 0 replies; only message in thread
From: Joseph Myers @ 2018-01-10  0:39 UTC (permalink / raw)
  To: libc-alpha

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).  Committed.

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.

diff --git a/sysdeps/powerpc/nofpu/Makefile b/sysdeps/powerpc/nofpu/Makefile
index 75b116c..463338d 100644
--- a/sysdeps/powerpc/nofpu/Makefile
+++ b/sysdeps/powerpc/nofpu/Makefile
@@ -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

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-01-10  0:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-10  0:39 Fix powerpc-nofpu fmaxmagl, fminmagl spurious "invalid" exception (bug 22691) [committed] Joseph Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).