gcc/libatomic
John David Anglin 266354012e libatomic: Provide FPU exception defines for __hppa__
The exception defines in <fenv.h> do not match the exception bits
in the FPU status register on hppa-linux and hppa64-hpux11.11.  On
linux, they match the trap enable bits.  On 64-bit hpux, they match
the exception bits for IA64.  The IA64 bits are in a different
order and location than HPPA.  HP uses table look ups to reorder
the bits in code to test and raise exceptions.

All the architectures that I looked at just pass the FPU status
register to __atomic_feraiseexcept().  The simplest approach for
hppa is to define FE_INEXACT, etc, to match the status register
and not include <fenv.h>..

2024-02-03  John David Anglin  <danglin@gcc.gnu.org>

libatomic/ChangeLog:

	PR target/59778
	* configure.tgt (hppa*): Set ARCH.
	* config/pa/fenv.c: New file.
2024-02-03 15:44:29 +00:00
..
config libatomic: Provide FPU exception defines for __hppa__ 2024-02-03 15:44:29 +00:00
testsuite Update copyright years. 2024-01-03 12:19:35 +01:00
.gitignore
acinclude.m4 libatomic: Enable LSE128 128-bit atomics for Armv9.4-a 2024-01-28 20:02:01 +00:00
aclocal.m4 Add `--with-toolexeclibdir=' configuration option 2020-01-24 11:24:25 +00:00
auto-config.h.in libatomic: Enable LSE128 128-bit atomics for Armv9.4-a 2024-01-28 20:02:01 +00:00
cas_n.c Update copyright years. 2024-01-03 12:19:35 +01:00
ChangeLog Daily bump. 2024-01-29 00:18:44 +00:00
configure libatomic: Enable LSE128 128-bit atomics for Armv9.4-a 2024-01-28 20:02:01 +00:00
configure.ac libatomic: Enable LSE128 128-bit atomics for Armv9.4-a 2024-01-28 20:02:01 +00:00
configure.tgt libatomic: Provide FPU exception defines for __hppa__ 2024-02-03 15:44:29 +00:00
exch_n.c Update copyright years. 2024-01-03 12:19:35 +01:00
fadd_n.c Update copyright years. 2024-01-03 12:19:35 +01:00
fand_n.c
fence.c Update copyright years. 2024-01-03 12:19:35 +01:00
fenv.c Update copyright years. 2024-01-03 12:19:35 +01:00
fior_n.c
flag.c Update copyright years. 2024-01-03 12:19:35 +01:00
fnand_n.c
fop_n.c Update copyright years. 2024-01-03 12:19:35 +01:00
fsub_n.c
fxor_n.c
gcas.c Update copyright years. 2024-01-03 12:19:35 +01:00
gexch.c Update copyright years. 2024-01-03 12:19:35 +01:00
glfree.c Update copyright years. 2024-01-03 12:19:35 +01:00
gload.c Update copyright years. 2024-01-03 12:19:35 +01:00
gstore.c Update copyright years. 2024-01-03 12:19:35 +01:00
host-config.h Update copyright years. 2024-01-03 12:19:35 +01:00
init.c
libatomic_i.h Update copyright years. 2024-01-03 12:19:35 +01:00
libatomic.map
load_n.c Update copyright years. 2024-01-03 12:19:35 +01:00
Makefile.am libatomic: Enable LSE128 128-bit atomics for Armv9.4-a 2024-01-28 20:02:01 +00:00
Makefile.in libatomic: Enable LSE128 128-bit atomics for Armv9.4-a 2024-01-28 20:02:01 +00:00
store_n.c Update copyright years. 2024-01-03 12:19:35 +01:00
tas_n.c Update copyright years. 2024-01-03 12:19:35 +01:00