glibc/sysdeps/powerpc
Adhemerval Zanella ecb1e7220d powerpc: Do not raise exception traps for fesetexcept/fesetexceptflag (BZ 30988)
According to ISO C23 (7.6.4.4), fesetexcept is supposed to set
floating-point exception flags without raising a trap (unlike
feraiseexcept, which is supposed to raise a trap if feenableexcept was
called with the appropriate argument).

This is a side-effect of how we implement the GNU extension
feenableexcept, where feenableexcept/fesetenv/fesetmode/feupdateenv
might issue prctl (PR_SET_FPEXC, PR_FP_EXC_PRECISE) depending of the
argument.  And on PR_FP_EXC_PRECISE, setting a floating-point exception
flag triggers a trap.

To make the both functions follow the C23, fesetexcept and
fesetexceptflag now fail if the argument may trigger a trap.

The math tests now check for an value different than 0, instead
of bail out as unsupported for EXCEPTION_SET_FORCES_TRAP.

Checked on powerpc64le-linux-gnu.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2023-12-19 15:12:34 -03:00
..
bits Fix misspellings in sysdeps/powerpc -- BZ 25337 2023-05-23 15:23:09 +00:00
fpu powerpc: Do not raise exception traps for fesetexcept/fesetexceptflag (BZ 30988) 2023-12-19 15:12:34 -03:00
nofpu Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nptl powerpc: Add space for HWCAP3/HWCAP4 in the TCB for future Power. 2023-12-15 20:20:14 -06:00
power4 Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
power6 Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
powerpc32 elf: Remove LD_PROFILE for static binaries 2023-11-21 16:15:42 -03:00
powerpc64 powerpc: Fix performance issues of strcmp power10 2023-12-15 16:42:40 -06:00
sys/platform Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
abort-instr.h Update. 2002-09-15 18:31:23 +00:00
atomic-machine.h Fix misspellings in sysdeps/powerpc -- BZ 25337 2023-05-23 15:23:09 +00:00
dl-lookupcfg.h sparc: Fix la_symbind for bind-now (BZ 23734) 2023-07-12 15:29:08 -03:00
dl-procinfo.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dl-procinfo.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dl-tls.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dl-tls.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dl-tunables.list PowerPC: Influence cpu/arch hwcap features via GLIBC_TUNABLES 2023-08-01 07:41:17 -05:00
elf-initfini.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ffs.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
fpu_control.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gccframe.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
hwcapinfo.c powerpc: Add space for HWCAP3/HWCAP4 in the TCB for future Power. 2023-12-15 20:20:14 -06:00
hwcapinfo.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ifunc-sel.h Fix powerpc ifunc-sel.h build for -Os. 2018-03-02 22:27:56 +00:00
jmpbuf-offsets.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
jmpbuf-unwind.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ldsodefs.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
libc-tls.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
locale-defines.sym powerpc: strcasestr optmization for power8 2016-04-22 19:23:13 +05:30
longjmp.c powerpc longjmp: Fix build after chk hidden builtin fix 2023-08-04 10:03:59 +02:00
machine-gmon.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Makefile powerpc: Fix unrecognized instruction errors with recent binutils 2021-09-29 14:42:20 -05:00
math-tests-snan-cast.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mod-cache-ppc.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mod-tlsopt-powerpc.c elf/tst-tlsopt-powerpc fails when compiled with -mcpu=power10 (BZ# 29776) 2022-11-14 22:04:25 +10:30
mp_clz_tab.c Update. 2002-03-14 20:48:50 +00:00
novmx-longjmp.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
novmx-sigjmp.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
novmxsetjmp.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
preconfigure configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
preconfigure.ac powerpc: Add support for POWER10 2020-06-29 10:08:38 -03:00
rtld-global-offsets.sym powerpc: Move cache line size to rtld_global_ro 2020-01-17 09:05:03 -03:00
sigjmp.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sotruss-lib.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
stackinfo.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
string-fza.h powerpc: Add string-fza.h 2023-02-06 16:19:35 -03:00
sysdep.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-arith.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-arithf.c Update. 1997-08-10 18:37:15 +00:00
test-get_hwcap-static.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-get_hwcap.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-gettimebase.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cache-ppc-static-dlopen.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cache-ppc-static.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cache-ppc.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-set_ppr.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-stack-align.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-tlsifunc-static.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-tlsifunc.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-tlsopt-powerpc.c tst-tlsopt-powerpc as a shared lib 2017-08-03 15:39:21 +09:30
Versions powerpc: Add space for HWCAP3/HWCAP4 in the TCB for future Power. 2023-12-15 20:20:14 -06:00