Go to file
Joseph Myers e134ca1753 Fix powerpc-nofpu complex long double functions spurious "invalid" exception (bug 22687).
For soft-float powerpc, various _Complex long double functions
generate spurious "invalid" exceptions, even with a compiler with GCC
bug 64811 fixed.

The problem is GCC's built-in fabsl expansion.  Various files are
already built with -fno-builtin-fabsl because in this case (IBM long
double, for soft-float or e500v1) a fallback fabsl expansion based on
comparisons is used, which can produce the wrong sign of a zero
result.  Those comparisons can also produce spurious exceptions for
NaN arguments.  Furthermore, __builtin_fpclassify implemently uses
__builtin_fabsl, and is unaffected by -fno-builtin-fabsl, and the
fpclassify macro uses __builtin_fpclassify in the absence of
-fsignaling-nans.  Thus, this patch arranges for the problem files
using fpclassify to be built with -fsignaling-nans in this case, to
avoid spurious exceptions from fpclassify.

Tested for powerpc (soft-float).

	[BZ #22687]
	* sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
	variable.
	(CFLAGS-s_cacoshl.c): Likewise.
	(CFLAGS-s_casinhl.c): Likewise.
	(CFLAGS-s_catanl.c): Likewise.
	(CFLAGS-s_catanhl.c): Likewise.
	(CFLAGS-s_cexpl.c): Likewise.
	(CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
	(CFLAGS-s_csinhl.c): Likewise.
	(CFLAGS-s_clogl.c): Likewise.
	(CFLAGS-s_clog10l.c): Likewise.
	(CFLAGS-s_csinl.c): Likewise.
	(CFLAGS-s_csqrtl.c): Likewise.
2018-01-09 22:34:35 +00:00
argp Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
assert Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
benchtests Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
bits Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
catgets Update copyright dates not handled by scripts/update-copyrights. 2018-01-01 00:41:16 +00:00
ChangeLog.old
conform Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
crypt Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
csu Update copyright dates not handled by scripts/update-copyrights. 2018-01-01 00:41:16 +00:00
ctype Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
debug Update copyright dates not handled by scripts/update-copyrights. 2018-01-01 00:41:16 +00:00
dirent Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
dlfcn Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
elf Add RISC-V dynamic relocations to elf.h 2018-01-06 23:31:32 -08:00
gmon Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gnulib Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
grp Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gshadow Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
hesiod Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
hurd hurd: Use the new file_exec_paths RPC 2018-01-09 01:37:34 +01:00
iconv Update copyright dates not handled by scripts/update-copyrights. 2018-01-01 00:41:16 +00:00
iconvdata Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
include elf: Support dlvsym within libc.so 2018-01-04 18:46:24 +01:00
inet Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
intl Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
io Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
libidn Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
libio Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
locale Update copyright dates not handled by scripts/update-copyrights. 2018-01-01 00:41:16 +00:00
localedata Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
login Update copyright dates not handled by scripts/update-copyrights. 2018-01-01 00:41:16 +00:00
mach Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
malloc Increase some test timeouts. 2018-01-04 21:58:40 +00:00
manual Update miscellaneous files from upstream sources. 2018-01-01 18:05:06 +00:00
math Improve math_errhandling 2018-01-03 13:14:10 +00:00
mathvec Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
misc misc/tst-pselect.c: Add copyright header 2018-01-02 22:07:59 +01:00
nis Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nptl [BZ #22637] Fix stack guard size accounting 2018-01-08 19:02:11 +00:00
nptl_db Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nscd Update copyright dates not handled by scripts/update-copyrights. 2018-01-01 00:41:16 +00:00
nss Update copyright dates not handled by scripts/update-copyrights. 2018-01-01 00:41:16 +00:00
po Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
posix hurd: Fix posix glob test 2018-01-06 22:19:13 +01:00
pwd Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
resolv resolv: Support binary labels in test framework 2018-01-08 20:07:24 +01:00
resource resource/tst-getrlimit.c: Add copyright header 2018-01-05 20:34:10 +01:00
rt Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
scripts Strip shared objects in subdirectories of lib 2018-01-06 23:35:56 -08:00
setjmp Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
shadow Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
signal Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
socket Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
soft-fp Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
stdio-common Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
stdlib i386: In makecontext, align the stack before calling exit [BZ #22667] 2018-01-04 18:47:35 +01:00
streams Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
string Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
sunrpc Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
support resolv: Support binary labels in test framework 2018-01-08 20:07:24 +01:00
sysdeps Fix powerpc-nofpu complex long double functions spurious "invalid" exception (bug 22687). 2018-01-09 22:34:35 +00:00
sysvipc Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
termios Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
time Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
timezone Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
wcsmbs Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
wctype Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
.gitattributes
.gitignore
abi-tags
aclocal.m4
ChangeLog Fix powerpc-nofpu complex long double functions spurious "invalid" exception (bug 22687). 2018-01-09 22:34:35 +00:00
config.h.in Add --enable-static-pie configure option to build static PIE [BZ #19574] 2017-12-15 17:12:14 -08:00
config.make.in Pass -no-pie to GCC only if GCC defaults to PIE [BZ #22614] 2017-12-18 12:24:38 -08:00
configure Pass -no-pie to GCC only if GCC defaults to PIE [BZ #22614] 2017-12-18 12:24:38 -08:00
configure.ac Pass -no-pie to GCC only if GCC defaults to PIE [BZ #22614] 2017-12-18 12:24:38 -08:00
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL Document that --enable-static-pie implies PIE 2017-12-19 13:51:16 -08:00
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Makefile.in
Makerules Allow make-link-multidir to make subdirectories 2018-01-06 23:35:46 -08:00
NEWS x86-64: Add sincosf with vector FMA 2018-01-08 08:04:40 -08:00
o-iterator.mk
README Remove tilepro-*-linux-gnu support 2017-12-20 16:55:24 -02:00
Rules Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
shlib-versions
test-skeleton.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
version.h

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu.  The current
GNU/Hurd support requires out-of-tree patches that will eventually be
incorporated into an official GNU C Library release.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arm-*-linux-gnueabi
	hppa-*-linux-gnu	Not currently functional without patches.
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu
	tilegx-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see http://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at http://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see http://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.