glibc/sysdeps
Szabolcs Nagy 7363a9a9a0 math: Fix asin and acos invalid exception with old gcc
This works around a gcc issue where it const folded inf/inf into nan,
preventing the invalid exception to be signalled.

(x-x)/(x-x) is more robust against optimizations and works for all
out of bounds values including x==nan.

The gcc issue https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95115
should be fixed on release branches starting from gcc-10, but it is
better to change the code in case glibc is built with older gcc.

Reviewed-by: Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
2022-10-17 08:18:52 +01:00
..
aarch64 elf: Remove -fno-tree-loop-distribute-patterns usage on dl-support 2022-10-10 10:32:28 -03:00
alpha elf: Remove _dl_string_hwcap 2022-10-06 07:59:48 -03:00
arc Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
arm arm: Enable USE_ATOMIC_COMPILER_BUILTINS (BZ #24774) 2022-10-07 16:19:20 -03:00
csky elf: Remove _dl_string_hwcap 2022-10-06 07:59:48 -03:00
generic elf: Remove -fno-tree-loop-distribute-patterns usage on dl-support 2022-10-10 10:32:28 -03:00
gnu errlist: add missing entry for EDEADLOCK (bug 29545) 2022-09-08 11:40:24 +02:00
hppa hppa: Fix initialization of dp register [BZ 29635] 2022-10-01 19:49:25 +00:00
htl htl: Make pthread*_cond_timedwait register wref before releasing mutex 2022-08-22 22:27:24 +02:00
hurd hurd: Fix pthread_kill on exiting/ted thread 2022-01-15 15:11:54 +01:00
i386 elf: Remove -fno-tree-loop-distribute-patterns usage on dl-support 2022-10-10 10:32:28 -03:00
ia64 Update _FloatN header support for C++ in GCC 13 2022-09-28 20:10:08 +00:00
ieee754 math: Fix asin and acos invalid exception with old gcc 2022-10-17 08:18:52 +01:00
loongarch LoongArch: Fix the condition to use PC-relative addressing in start.S 2022-10-08 16:34:45 +08:00
m68k Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
mach Regenerate sysdeps/mach/hurd/bits/errno.h 2022-10-05 19:21:25 +00:00
microblaze Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
mips elf: Remove _dl_string_hwcap 2022-10-06 07:59:48 -03:00
nios2 Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
nptl Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
or1k Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
posix get_nscd_addresses: Fix subscript typos [BZ #29605] 2022-09-28 12:47:10 -04:00
powerpc elf: Remove -fno-tree-loop-distribute-patterns usage on dl-support 2022-10-10 10:32:28 -03:00
pthread Do not define static_assert or thread_local in headers for C2x 2022-09-07 18:39:28 +00:00
riscv Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
s390 elf: Remove -fno-tree-loop-distribute-patterns usage on dl-support 2022-10-10 10:32:28 -03:00
sh Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
sparc elf: Remove -fno-tree-loop-distribute-patterns usage on dl-support 2022-10-10 10:32:28 -03:00
unix Add AArch64 HWCAP2_EBF16 from Linux 6.0 to bits/hwcap.h 2022-10-12 14:28:14 +00:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
wordsize-64 Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
x86 elf: Remove _dl_string_hwcap 2022-10-06 07:59:48 -03:00
x86_64 x86: Update strlen-evex-base to use new reg/vec macros. 2022-10-14 21:21:58 -07:00