Go to file
Joseph Myers 1f79bc4838 Change fromfp functions to return floating types following C23 (bug 28327)
As discussed in bug 28327, C23 changed the fromfp functions to return
floating types instead of intmax_t / uintmax_t.  (Although the
motivation in N2548 was reducing the use of intmax_t in library
interfaces, the new version does have the advantage of being able to
specify arbitrary integer widths for e.g. assigning the result to a
_BitInt, as well as being able to indicate an error case in-band with
a NaN return.)

As with other such changes from interfaces introduced in TS 18661,
implement the new types as a replacement for the old ones, with the
old functions remaining as compat symbols but not supported as an API.
The test generator used for many of the tests is updated to handle
both versions of the functions.

Tested for x86_64 and x86, and with build-many-glibcs.py.

Also tested tgmath tests for x86_64 with GCC 7 to make sure that the
modified case for older compilers in <tgmath.h> does work.

Also tested for powerpc64le to cover the ldbl-128ibm implementation
and the other things that are handled differently for that
configuration.  The new tests fail for ibm128, but all the failures
relate to incorrect signs of zero results and turn out to arise from
bugs in the underlying roundl, ceill, truncl and floorl
implementations that I've reported in bug 33623, rather than
indicating any bug in the actual new implementation of the functions
for that format.  So given fixes for those functions (which shouldn't
be hard, and of course should add to the tests for those functions
rather than relying only on indirect testing via fromfp), the fromfp
tests should start passing for ibm128 as well.
2025-11-13 00:04:21 +00:00
ChangeLog.old Create ChangeLog.old/ChangeLog.31 2025-07-28 20:22:55 +02:00
advisories
argp argp: Move attribute_hidden to argp-fmtstream.h 2025-10-29 12:54:00 -03:00
assert Support assert as a variadic macro for C23 2025-11-03 19:56:42 +00:00
benchtests hurd: Drop remnants of cthreads 2025-11-12 01:11:11 +01:00
bits Add once_flag, ONCE_FLAG_INIT and call_once to stdlib.h for C23 2025-10-01 15:15:15 +00:00
catgets catgets: Remove catgets/config.h 2025-10-21 09:24:19 -03:00
conform
csu
ctype Use TLS initial-exec model for __libc_tsd_CTYPE_* thread variables [BZ #33234] 2025-08-05 13:06:12 +02:00
debug Fix incorrect setrlimit return value checks in tests 2025-10-28 18:51:51 -07:00
dirent
dlfcn
elf Filter out internal abort during ld.so build 2025-11-10 08:58:12 -03:00
gmon gmon: Only used -fno-tree-loop-distribute-patterns if compiler supports it 2025-10-21 09:27:01 -03:00
gnulib
hesiod
htl hurd: Drop remnants of cthreads 2025-11-12 01:11:11 +01:00
hurd hurd: Drop remnants of cthreads 2025-11-12 01:11:11 +01:00
iconv Add missing $(rpath-link) to /elf/ld.so --library-path 2025-11-08 17:44:48 +01:00
iconvdata Add missing $(rpath-link) to /elf/ld.so --library-path 2025-11-08 17:44:48 +01:00
include string: Check if attribute can declared after function declaration 2025-11-10 08:57:56 -03:00
inet Annotate swtich fall-through 2025-10-29 12:54:01 -03:00
intl Annotate swtich fall-through 2025-10-29 12:54:01 -03:00
io linux: Update statx-generic.h with linux 6.16 2025-11-05 07:15:52 -03:00
libio libio: Add terminating NUL when the first character is EOF in getdelim [BZ #28038] 2025-10-09 17:38:01 -07:00
locale Add missing $(rpath-link) to /elf/ld.so --library-path 2025-11-08 17:44:48 +01:00
localedata tests-mbwc/tst_funcs.h: Fix typo 2025-10-01 14:49:10 -03:00
login login: fix ut_line comparison logic 2025-08-29 14:49:19 -04:00
mach hurd: Drop remnants of cthreads 2025-11-12 01:11:11 +01:00
malloc Cleanup some recently added whitespace. 2025-10-30 18:56:58 -07:00
manual Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
math Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
mathvec
misc cdefs: Fix some typos in comments. 2025-11-11 11:04:29 -08:00
nis Cleanup some recently added whitespace. 2025-10-30 18:56:58 -07:00
nptl nptl: Remove ATOMIC_EXCHANGE_USES_CAS usage 2025-11-04 04:14:01 -03:00
nptl_db Suppress -Wmaybe-uninitialized only for gcc 2025-10-21 09:24:05 -03:00
nscd atomic: Remove atomic_forced_read 2025-10-08 12:59:30 +00:00
nss nss: Suppress clang -Wstring-plus-int on __nss_shlib_revision definition 2025-11-10 08:57:53 -03:00
po
posix Cleanup some recently added whitespace. 2025-10-30 18:56:58 -07:00
resolv Cleanup some recently added whitespace. 2025-10-30 18:56:58 -07:00
resource
rt
scripts Add missing $(rpath-link) to elf/ld.so --library-path 2025-11-08 21:47:25 +01:00
setjmp
signal
socket
soft-fp
stdio-common Cleanup some recently added whitespace. 2025-10-30 18:56:58 -07:00
stdlib stdlib: Do not define once_flag, ONCE_FLAG_INIT for C++ 2025-11-11 18:20:10 +01:00
string Suppress -Wmaybe-uninitialized only for gcc 2025-10-21 09:24:05 -03:00
sunrpc Cleanup some recently added whitespace. 2025-10-30 18:56:58 -07:00
support support: Exit on consistency check failure in resolv_response_add_name 2025-11-07 08:50:44 +01:00
sysdeps Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
sysvipc
termios
time Cleanup some recently added whitespace. 2025-10-30 18:56:58 -07:00
timezone configure: Use -Wno-maybe-uninitialized iff compiler supports it 2025-10-21 09:24:03 -03:00
wcsmbs
wctype
.b4-config
.clang-format
.gitattributes
.gitignore
CONTRIBUTED-BY
COPYING
COPYING.LIB
INSTALL
LICENSES
MAINTAINERS
Makeconfig Build glibc with -ftrapping-math 2025-10-20 11:33:54 -03:00
Makefile
Makefile.help
Makefile.in Remove test-have-mamx-tile from Makefile.in 2025-08-23 15:58:00 -07:00
Makerules Enable --no-undefined-version by default 2025-10-29 12:54:06 -03:00
NEWS Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
README
Rules Build programs in $(others-noinstall) like tests if libgcc_s is available 2025-11-04 14:48:18 +08:00
SECURITY.md
SHARED-FILES math: Sync acosh from CORE-MATH 2025-11-10 08:58:14 -03:00
abi-tags
aclocal.m4 x86: Set have-protected-data to no if unsupported 2025-08-22 17:55:32 -07:00
config.h.in x86: math: Use of __libgcc_cmp_return__ iff compiler supports it 2025-11-10 08:57:59 -03:00
config.make.in
configure Filter out internal abort during ld.so build 2025-11-10 08:58:12 -03:00
configure.ac Filter out internal abort during ld.so build 2025-11-10 08:58:12 -03:00
extra-lib.mk
gen-locales.mk
libc-abis
libof-iterator.mk
o-iterator.mk
shlib-versions
test-skeleton.c
version.h Bump version to 2.42.9000 2025-07-28 20:31:31 +02:00

README

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 and x86_64-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
	arc*-*-linux-gnu
	arm-*-linux-gnueabi
	csky-*-linux-gnuabiv2
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	loongarch64-*-linux-gnu Hardware floating point, LE only.
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	or1k-*-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
	riscv32-*-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 https://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 https://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 https://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.