diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-10-24 08:37:15 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-12-19 15:12:38 -0300 |
commit | 47a9eeb9ba72fd30766bdf4faa7d46b8ca33a7fd (patch) | |
tree | 4ca5baa3c7cee9c6e40b0bfc583d8c0d2e3ccbe4 /hurd/exc2signal.c | |
parent | ecb1e7220ddc7a4845bbd1b6fd7fcf17aba566bd (diff) | |
download | glibc-47a9eeb9ba72fd30766bdf4faa7d46b8ca33a7fd.tar.gz glibc-47a9eeb9ba72fd30766bdf4faa7d46b8ca33a7fd.tar.xz glibc-47a9eeb9ba72fd30766bdf4faa7d46b8ca33a7fd.zip |
i686: Do not raise exception traps on fesetexcept (BZ 30989)
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). The flags can be set in the 387 unit or in the SSE unit. To set a flag, it is sufficient to do it in the SSE unit, because that is guaranteed to not trap. However, on i386 CPUs that have only a 387 unit, set the flags in the 387, as long as this cannot trap. Checked on i686-linux-gnu. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'hurd/exc2signal.c')
0 files changed, 0 insertions, 0 deletions