Go to file
Joseph Myers 9a7c643ac2 Fix i686 build with GCC 9.
This patch fixes the glibc build for i686 with current mainline GCC,
where there are warnings about inconsistent attributes for aliases in
certain files defining libm IFUNCs.

In three of the files, the aliases were defined in terms of internal
symbols such as __sinf, and copied attributes from file-local
declarations of those functions which lacked the nothrow attribute.
Since the nothrow attribute is present on the declarations from
<math.h> (which include declarations of those __-prefixed functions),
the natural fix was to include <math.h> in those files, replacing the
local declarations.

In the other three files, a more complicated __hidden_ver1 call was
involved in the warnings.  <math.h> has not been included at this
point and, furthermore, it is included indirectly only later in the
source file after macros have been defined to remap a function name
therein.  So there isn't an obvious declaration from which to copy the
attribute and it seems simplest and safest just to add __THROW to the
hidden_ver1 calls.

Tested for i686 (build-many-glibcs.py compilers build for
x86_64-linux-gnu with GCC mainline; full testsuite run with GCC 7).

	* sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
	with __hidden_ver1 call.
	* sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
	* sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
	* sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
	(__cosf): Do not declare here.
	* sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
	(__sincosf): Do not declare here.
	* sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
	(__sinf): Do not declare here.
2018-11-12 18:47:05 +00:00
argp Use TEST_COMPARE_STRING in recently added test 2018-11-08 22:42:01 -02:00
assert
benchtests Patch to require Python 3.4 or later to build glibc. 2018-10-29 15:28:05 +00:00
bits Y2038: Add 64-bit time for all architectures 2018-10-24 22:09:34 +02:00
catgets
ChangeLog.old
conform Update conform/Makefile mkdir commands. 2018-11-09 17:40:58 +00:00
crypt Don't reduce test timeout to less than default 2018-10-17 09:34:13 +02:00
csu
ctype
debug
dirent Don't reduce test timeout to less than default 2018-10-17 09:34:13 +02:00
dlfcn
elf RISC-V: properly terminate call chain (bug 23125) 2018-10-30 12:07:25 +01:00
gmon
gnulib
grp
gshadow
hesiod
htl
hurd hurd: Fix spawni's user_link reallocation 2018-11-11 20:09:17 +01:00
iconv Unconditionally call __gconv_get_path when reading iconv configuration 2018-11-05 15:45:07 +01:00
iconvdata
include Add support for GCC 9 attribute copy. 2018-11-09 17:24:12 -07:00
inet
intl
io Don't reduce test timeout to less than default 2018-10-17 09:34:13 +02:00
libio Don't reduce test timeout to less than default 2018-10-17 09:34:13 +02:00
locale
localedata Currency symbol should not preceed amount for [BZ #23791] 2018-10-29 19:23:11 +01:00
login
mach
malloc malloc: Convert the unlink macro to the unlink_chunk function 2018-11-12 14:35:06 +01:00
manual Fix typo in the documentation of gcvt 2018-11-01 15:52:35 -03:00
math Patch to require Python 3.4 or later to build glibc. 2018-10-29 15:28:05 +00:00
mathvec
misc Add support for GCC 9 attribute copy. 2018-11-09 17:24:12 -07:00
nis
nptl Fix race in pthread_mutex_lock while promoting to PTHREAD_MUTEX_ELISION_NP [BZ #23275] 2018-10-17 12:23:04 +02:00
nptl_db
nscd
nss Increase timeout of nss/tst-nss-files-hosts-multi 2018-10-09 15:57:01 +01:00
po
posix posix: New function posix_spawn_file_actions_addchdir_np [BZ #17405] 2018-11-06 16:08:12 +01:00
pwd
resolv Add an additional test to resolv/tst-resolv-network.c 2018-11-08 13:47:34 +01:00
resource resource: Update struct rusage comments [BZ #23689] 2018-10-19 18:03:21 +02:00
rt Don't reduce test timeout to less than default 2018-10-17 09:34:13 +02:00
scripts Remove pre-Python-3.4 compatibility from build-many-glibcs.py. 2018-10-26 15:47:23 +00:00
setjmp
shadow
signal
socket
soft-fp soft-fp: Add implementation for 128 bit self-contained 2018-11-01 18:22:00 +00:00
stdio-common Disable -Wformat-overflow= warnings for some printf tests. 2018-11-01 17:13:55 +00:00
stdlib stdlib/test-bz22786: Avoid memory leaks in the test itself 2018-10-30 13:56:40 +01:00
streams
string
sunrpc
support support: Fix printf format for TEST_COMPARE_STRING 2018-11-07 11:11:06 -02:00
sysdeps Fix i686 build with GCC 9. 2018-11-12 18:47:05 +00:00
sysvipc
termios
time Y2038: Add 64-bit time for all architectures 2018-10-24 22:09:34 +02:00
timezone Don't reduce test timeout to less than default 2018-10-17 09:34:13 +02:00
wcsmbs Stop c32rtomb and mbrtoc32 aliasing wcrtomb and mbrtowc (bug 23793). 2018-10-22 14:52:14 +00:00
wctype
.gitattributes
.gitignore
abi-tags
aclocal.m4
ChangeLog Fix i686 build with GCC 9. 2018-11-12 18:47:05 +00:00
config.h.in
config.make.in
configure Patch to require Python 3.4 or later to build glibc. 2018-10-29 15:28:05 +00:00
configure.ac Patch to require Python 3.4 or later to build glibc. 2018-10-29 15:28:05 +00:00
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL Patch to require Python 3.4 or later to build glibc. 2018-10-29 15:28:05 +00:00
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig
Makefile
Makefile.in
Makerules
NEWS posix: New function posix_spawn_file_actions_addchdir_np [BZ #17405] 2018-11-06 16:08:12 +01:00
o-iterator.mk
README
Rules Patch to require Python 3.4 or later to build glibc. 2018-10-29 15:28:05 +00:00
shlib-versions
test-skeleton.c
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.

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
	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
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-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.