glibc/bits
Tulio Magno Quites Machado Filho 1ef9b6e0bf Do not redirect calls to __GI_* symbols, when redirecting to *ieee128
On platforms where long double has IEEE binary128 format as a third
option (initially, only powerpc64le), many exported functions are
redirected to their __*ieee128 equivalents.  This redirection is
provided by installed headers such as stdio-ldbl.h, and is supposed to
work correctly with user code.

However, during the build of glibc, similar redirections are employed,
in internal headers, such as include/stdio.h, in order to avoid extra
PLT entries.  These redirections conflict with the redirections to
__*ieee128, and must be avoided during the build.  This patch protects
the second redirections with a test for __LONG_DOUBLE_USES_FLOAT128, a
new macro that is defined to 1 when functions that deal with long double
typed values reuses the _Float128 implementation (this is currently only
true for powerpc64le).

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

Co-authored-by: Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
2019-12-27 15:02:10 -03:00
..
types Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
byteswap.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
confname.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
dirent_ext.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
dirent.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
dlfcn.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
elfclass.h
endian.h
environments.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
errno.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fcntl.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fenv.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fenvinline.h
floatn-common.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
floatn.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
flt-eval-method.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fp-fast.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fp-logb.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
hwcap.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
in.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
indirect-return.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ioctl-types.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ioctls.h
ipc.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ipctypes.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
iscanonical.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
libc-header-start.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
libm-simd-decl-stubs.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
link.h
local_lim.h
long-double.h Do not redirect calls to __GI_* symbols, when redirecting to *ieee128 2019-12-27 15:02:10 -03:00
math-vector.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mathdef.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mathinline.h
mman.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mqueue.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
msq.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
netdb.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
param.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
poll.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
posix_opt.h
pthreadtypes.h
resource.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sched.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
select.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sem.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
setjmp.h
shm.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sigaction.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sigcontext.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sigevent-consts.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
siginfo-consts.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
signal_ext.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
signum-generic.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
signum.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sigstack.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sigthread.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sockaddr.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
socket.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ss_flags.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
stat.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
statfs.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
statvfs.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
stdint-intn.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
stdint-uintn.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
stdlib-bsearch.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sys_errlist.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
syslog-path.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sysmacros.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
termios.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
time64.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
time.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
timesize.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
typesizes.h Define __STATFS_MATCHES_STATFS64 2019-10-24 09:14:26 -07:00
uintn-identity.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
uio_lim.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
uio-ext.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
unistd_ext.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
utmp.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
utsname.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
waitflags.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
waitstatus.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
wchar.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
wordsize.h Define wordsize.h macros everywhere 2016-11-04 09:37:44 -07:00