glibc/sysdeps/unix/sysv/linux
Szabolcs Nagy c20a10561a Remove the error handling wrapper from exp and exp2
Introduce new exp and exp2 symbol version that don't do SVID compatible
error handling.  The standard errno and fp exception based error handling
is inline in the new code and does not have significant overhead.

The double precision wrappers are disabled for sysdeps/ieee754/dbl-64
by using empty w_exp.c and w_exp2.c files, the math/w_exp.c and
math/w_exp2.c files use the wrapper template and can be included by
targets that have their own exp and exp2 implementations or use ifunc
on the glibc internal __ieee754_exp symbol.

The compatibility symbol versions still use the wrapper with SVID error
handling around the new code.  There is no new symbol version nor
compatibility code on !LIBM_SVID_COMPAT targets (e.g. riscv).

On targets where previously expl and exp2l were aliases of exp and exp2,
now they point to the compatibility symbols with the wrapper, because
they still need the SVID compatible error handling.  This affects
NO_LONG_DOUBLE (e.g arm) and LONG_DOUBLE_COMPAT (e.g. alpha) targets
as well.

The _finite symbols are now aliases of the standard symbols (they have
no performance advantage anymore).  Both the standard symbols and
_finite symbols set errno and thus not const functions.

The ia64 asm is changed so the compat and new symbol versions map to the
same address.

On x86_64 #include <math.h> was added before macro definitions that may
affect that header (the new macro name is __exp instead of __ieee754_exp
which breaks some math.h macros).

Tested with build-many-glibcs.py.

	* math/Versions (GLIBC_2.29): Add exp and exp2.
	* math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
	symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
	* math/w_exp_compat.c (__exp_compat): Likewise.
	* math/w_exp.c: New file.
	* math/w_exp2.c: New file.
	* sysdeps/i386/fpu/w_exp.c: New file.
	* sysdeps/i386/fpu/w_exp2.c: New file.
	* sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
	* sysdeps/ia64/fpu/e_exp2.S: Likewise.
	* sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
	and add necessary aliases.
	* sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
	and add necessary aliases.
	* sysdeps/ieee754/dbl-64/w_exp.c: New file.
	* sysdeps/ieee754/dbl-64/w_exp2.c: New file.
	* sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
	* sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
	* sysdeps/mach/hurd/i386/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
	* sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
	* sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
	(__ieee754_exp): Rename to __exp.
	* sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
	(__ieee754_exp): Rename to __exp.
	* sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
	(__ieee754_exp): Rename to __exp.
	* sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
	__exp.
	* sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
2018-11-21 09:55:02 +00:00
..
aarch64 Remove the error handling wrapper from exp and exp2 2018-11-21 09:55:02 +00:00
alpha Remove the error handling wrapper from exp and exp2 2018-11-21 09:55:02 +00:00
arm Remove the error handling wrapper from exp and exp2 2018-11-21 09:55:02 +00:00
bits Y2038: provide size of default time_t for target architecture 2018-10-24 11:37:09 +02:00
generic Use common bits/shm.h for more architectures. 2018-10-10 00:56:17 +00:00
hppa Remove the error handling wrapper from exp and exp2 2018-11-21 09:55:02 +00:00
i386 Remove the error handling wrapper from exp and exp2 2018-11-21 09:55:02 +00:00
ia64 Remove the error handling wrapper from exp and exp2 2018-11-21 09:55:02 +00:00
include
m68k Remove the error handling wrapper from exp and exp2 2018-11-21 09:55:02 +00:00
microblaze Remove the error handling wrapper from exp and exp2 2018-11-21 09:55:02 +00:00
mips Remove the error handling wrapper from exp and exp2 2018-11-21 09:55:02 +00:00
net
netash
netatalk
netax25
neteconet
netinet
netipx
netiucv
netpacket
netrom
netrose
nfs
nios2 Remove the error handling wrapper from exp and exp2 2018-11-21 09:55:02 +00:00
powerpc Remove the error handling wrapper from exp and exp2 2018-11-21 09:55:02 +00:00
riscv RISC-V: don't assume PI mutexes and robust futexes before 4.20 (bug 23864) 2018-11-07 09:37:48 +01:00
s390 Remove the error handling wrapper from exp and exp2 2018-11-21 09:55:02 +00:00
scsi
sh Remove the error handling wrapper from exp and exp2 2018-11-21 09:55:02 +00:00
sparc Remove the error handling wrapper from exp and exp2 2018-11-21 09:55:02 +00:00
sys Add IN_MASK_CREATE from Linux 4.19 to sys/inotify.h. 2018-10-25 15:57:23 +00:00
wordsize-64
x86 Y2038: provide size of default time_t for target architecture 2018-10-24 11:37:09 +02:00
x86_64 Remove the error handling wrapper from exp and exp2 2018-11-21 09:55:02 +00:00
Implies
Makefile Use single bits/shm.h for all architectures. 2018-10-17 11:56:28 +00:00
Versions
_G_config.h
_exit.c
a.out.h
accept.c
accept4.c
access.c
adjtime.c
aio_misc.h
aio_sigqueue.c
alphasort64.c
arch-fork.h
bind.c
check_native.c
check_pf.c Linux: Create Netlink socket with SOCK_CLOEXEC in __check_pf [BZ #15722] 2018-06-18 15:24:55 +02:00
clock.c
clock_getcpuclockid.c
clock_getres.c
clock_gettime.c
clock_nanosleep.c
clock_settime.c
close.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
close_nocancel.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
cmsg_nxthdr.c
configure
configure.ac
connect.c
copy_file_range.c
creat.c
creat64.c
createthread.c
default-sched.h
device-nrs.h
dl-brk.c
dl-execstack.c
dl-fxstatat64.c
dl-getcwd.c
dl-librecon.h
dl-openat64.c
dl-opendir.c
dl-origin.c
dl-osinfo.h
dl-sbrk.c
dl-sysdep.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
dl-sysdep.h
dl-vdso.c
dl-vdso.h
dl-writev.h
epoll_pwait.c
epoll_wait.c
errqueue.h
eventfd_read.c
eventfd_write.c
exit-thread.h
faccessat.c
fallocate.c
fallocate64.c
fatal-prepare.h
fchmodat.c
fcntl.c Fix Linux fcntl OFD locks for non-LFS architectures (BZ#20251) 2018-06-26 13:22:53 -03:00
fcntl64.c Fix Linux fcntl OFD locks for non-LFS architectures (BZ#20251) 2018-06-26 13:22:53 -03:00
fcntl_nocancel.c Fix Linux fcntl OFD locks for non-LFS architectures (BZ#20251) 2018-06-26 13:22:53 -03:00
fd_to_filename.h Fix build from commit 0b727ed 2018-10-02 12:29:02 -03:00
fdatasync.c
fexecve.c
filter-nr-syscalls.awk
fips-private.h
fpathconf.c
fstatfs64.c
fstatvfs.c
fstatvfs64.c
fsync.c
ftime.c
ftruncate.c
ftruncate64.c
futex-internal.h
futimens.c
futimes.c
futimesat.c
fxstat.c
fxstat64.c
fxstatat.c
fxstatat64.c
gai_sigqueue.c
gen-syscall-h.awk
gentempfd.c
getclktck.c
getcwd.c
getdents.c
getdents64.c Linux: Rewrite __old_getdents64 [BZ #23497] 2018-08-10 10:20:13 +02:00
getdirentries.c
getdirentries64.c
getdtsz.c
getentropy.c
gethostid.c Linux gethostid: Check for NULL value from gethostbyname_r [BZ #23679] 2018-09-20 12:02:48 +02:00
getipv4sourcefilter.c
getloadavg.c
getlogin.c
getlogin_r.c
getpagesize.c
getpeername.c
getpriority.c
getpt.c
getrandom.c
getrlimit.c
getrlimit64.c
getsockname.c
getsockopt.c
getsourcefilter.c
getsourcefilter.h
getsysstats.c
gettimeofday.c
glob-lstat-compat.c
glob.c
glob64-lstat-compat.c
glob64.c
globfree.c
globfree64.c
grantpt.c
if_index.c
ifaddrs.c getifaddrs: Don't return ifa entries with NULL names [BZ #21812] 2018-06-29 09:44:55 +02:00
ifreq.c
internal-signals.h
internal_statvfs.c
internal_statvfs.h
internal_statvfs64.c
ipc_ops.h
ipc_priv.h
kernel-features.h Remove __ASSUME_SOCKETCALL. 2018-11-08 20:28:07 +00:00
kernel-posix-cpu-timers.h
kernel-posix-timers.h
kernel_sigaction.h
kernel_stat.h
kernel_termios.h
ldd-rewrite.sed
lddlibc4.c
ldsodefs.h
libc_fatal.c
linux_fsinfo.h
listen.c
local-setxid.h
lowlevellock-futex.h
lseek.c
lseek64.c
lutimes.c
lxstat.c
lxstat64.c
malloc-sysdep.h
mlock2.c
mmap.c
mmap64.c
mmap_internal.h
mq_close.c
mq_getattr.c
mq_notify.c
mq_open.c
mq_receive.c
mq_send.c
mq_timedreceive.c
mq_timedsend.c
mq_unlink.c
msgctl.c
msgget.c
msgrcv.c
msgsnd.c
msync.c
nanosleep.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
nanosleep_nocancel.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
netlink_assert_response.c [BZ #20271] Add newlines in __libc_fatal calls. 2018-08-31 18:04:32 -07:00
netlinkaccess.h
nice.c
not-cancel.h Fix Linux fcntl OFD locks for non-LFS architectures (BZ#20251) 2018-06-26 13:22:53 -03:00
not-errno.h
nscd_setup_thread.c
ntp_gettime.c
ntp_gettimex.c
olddirent.h
oldglob.c
open.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
open64.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
open64_nocancel.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
open_by_handle_at.c
open_nocancel.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
openat.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
openat64.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
openat64_nocancel.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
openat_nocancel.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
opensock.c
pathconf.c
pathconf.h
paths.h
pause.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
pause_nocancel.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
personality.c
pkey_get.c
pkey_mprotect.c
pkey_set.c
poll.c
posix_fadvise.c
posix_fadvise64.c
posix_fallocate.c
posix_fallocate64.c
posix_madvise.c
ppoll.c
pread.c
pread64.c
preadv.c
preadv2.c Fix misreported errno on preadv2/pwritev2 (BZ#23579) 2018-09-28 10:08:09 -03:00
preadv64.c
preadv64v2.c Fix misreported errno on preadv2/pwritev2 (BZ#23579) 2018-09-28 10:08:09 -03:00
prlimit.c
prof-freq.c
profil.c
pselect.c
pt-raise.c
pthread-pids.h
pthread_getaffinity.c
pthread_getcpuclockid.c
pthread_getname.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
pthread_kill.c
pthread_setaffinity.c
pthread_setname.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
pthread_sigmask.c
pthread_sigqueue.c
ptrace.c
ptsname.c
pwrite.c
pwrite64.c
pwritev.c
pwritev2.c Fix misreported errno on preadv2/pwritev2 (BZ#23579) 2018-09-28 10:08:09 -03:00
pwritev64.c
pwritev64v2.c Fix misreported errno on preadv2/pwritev2 (BZ#23579) 2018-09-28 10:08:09 -03:00
raise.c
read.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
read_nocancel.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
readahead.c
readdir.c
readdir64.c
readdir64_r.c
readdir_r.c
readonly-area.c
readv.c
reboot.c
recv.c
recvfrom.c
recvmmsg.c
recvmsg.c
remove.c
rename.c
renameat.c Add renameat2 function [BZ #17662] 2018-07-05 19:00:10 +02:00
renameat2.c Add renameat2 function [BZ #17662] 2018-07-05 19:00:10 +02:00
sa_len.c
safe-fatal.h
scandir64.c
sched_getaffinity.c
sched_getcpu.c
sched_setaffinity.c
segfault.c
select.c
semctl.c
semget.c
semop.c
semtimedop.c
send.c
sendmmsg.c
sendmsg.c
sendto.c
setegid.c
seteuid.c
setgid.c
setgroups.c
sethostid.c
setipv4sourcefilter.c
setregid.c
setresgid.c
setresuid.c
setreuid.c
setrlimit.c
setrlimit64.c
setsockopt.c
setsourcefilter.c
setuid.c
shlib-versions
shm-directory.c libc: Extend __libc_freeres framework (Bug 23329). 2018-06-29 22:39:06 -04:00
shmat.c
shmctl.c
shmdt.c
shmget.c
shutdown.c
sigaction.c
siglist.h
signal.c
signalfd.c
sigpending.c
sigprocmask.c
sigqueue.c
sigreturn.c
sigset-cvt-mask.h
sigsetops.h
sigstack.c
sigsuspend.c
sigtimedwait.c
sigwait.c
sigwaitinfo.c
sizes.h
socket.c
socketcall.h
socketpair.c
spawni.c posix: New function posix_spawn_file_actions_addchdir_np [BZ #17405] 2018-11-06 16:08:12 +01:00
speed.c
splice.c
statfs64.c
statvfs.c
statvfs64.c
statx.c Add the statx function 2018-07-10 16:14:45 +02:00
sync_file_range.c
syscall-names.list Update kernel version in syscall-names.list to 4.19. 2018-10-22 23:26:37 +00:00
syscalls.list
sysconf.c
sysctl.c
sysctl.mk
sysdep-cancel.h
sysdep-vdso.h Simplify an #if #else #endif 2018-10-31 10:32:40 -07:00
sysdep.h
syslog.c
system.c
tcdrain.c
tcflow.c
tcflush.c
tcgetattr.c
tcgetpgrp.c
tcsendbrk.c
tcsetattr.c
tcsetpgrp.c
tee.c
termio.h
test-errno-linux.c
time.c
timer_create.c
timer_delete.c
timer_getoverr.c
timer_gettime.c
timer_routines.c
timer_settime.c
times.c
timespec_get.c
truncate.c
truncate64.c
tst-affinity-pid.c
tst-affinity.c
tst-align-clone.c
tst-clone.c
tst-clone2.c
tst-clone3.c
tst-fallocate-common.c Avoid running some tests if the file system does not support holes 2018-08-21 12:56:53 +02:00
tst-fallocate.c
tst-fallocate64.c
tst-fanotify.c
tst-getpid1.c
tst-memfd_create.c
tst-mlock2.c
tst-ofdlocks-compat.c Fix Linux fcntl OFD locks on unsupported kernels 2018-07-27 14:48:06 -03:00
tst-ofdlocks.c Fix Linux fcntl OFD locks on unsupported kernels 2018-07-27 14:48:06 -03:00
tst-personality.c
tst-pkey.c
tst-quota.c
tst-readdir64-compat.c Linux: Rewrite __old_getdents64 [BZ #23497] 2018-08-10 10:20:13 +02:00
tst-rlimit-infinity.c
tst-setgetname.c
tst-signal-numbers.sh
tst-skeleton-affinity.c
tst-skeleton-thread-affinity.c
tst-sync_file_range.c
tst-syscall-list.sh
tst-sysconf-iov_max-uapi.c
tst-sysconf-iov_max.c
tst-thread-affinity-pthread.c
tst-thread-affinity-pthread2.c
tst-thread-affinity-sched.c
tst-ttyname.c
ttyname.c
ttyname.h
ttyname_r.c
ualarm.c
umount.c
umount2.S
unlockpt.c
updwtmp.c
ustat.c
utimensat.c
utimes.c
utmp_file.c
versionsort64.c
vfork.c
vmsplice.c
wait.c
wait3.c
waitid.c
waitpid.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
waitpid_nocancel.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
write.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
write_nocancel.c Avoid cancellable I/O primitives in ld.so. 2018-06-12 09:53:04 -04:00
writev.c
xmknod.c
xmknodat.c
xstat.c
xstat64.c
xstatconv.c
xstatconv.h