From 3f8b479fe0d50e8c7d759b71d1db69d6f0aec0c0 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sat, 17 Aug 2013 01:24:00 -0300 Subject: PR 15483 * sysdeps/powerpc/nofpu/sim-full.c: Add FIXME note about the need for thread-specific variables preserved across signal handlers. * sysdeps/powerpc/nofpu/soft-supp.h: Likewise. * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise. --- ports/sysdeps/powerpc/nofpu/sim-full.c | 5 +++++ ports/sysdeps/powerpc/nofpu/soft-supp.h | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'ports/sysdeps/powerpc/nofpu') diff --git a/ports/sysdeps/powerpc/nofpu/sim-full.c b/ports/sysdeps/powerpc/nofpu/sim-full.c index fc061d0c00..e16703323d 100644 --- a/ports/sysdeps/powerpc/nofpu/sim-full.c +++ b/ports/sysdeps/powerpc/nofpu/sim-full.c @@ -21,6 +21,11 @@ #include "soft-fp.h" #include "soft-supp.h" +/* FIXME: these variables should be thread specific (see bugzilla bug + 15483) and ideally preserved across signal handlers, like hardware + FP status words, but the latter is quite difficult to accomplish in + userland. */ + /* Global to store sticky exceptions. */ int __sim_exceptions __attribute__ ((nocommon)); libc_hidden_data_def (__sim_exceptions); diff --git a/ports/sysdeps/powerpc/nofpu/soft-supp.h b/ports/sysdeps/powerpc/nofpu/soft-supp.h index b9638bbba9..64a3d2a1d2 100644 --- a/ports/sysdeps/powerpc/nofpu/soft-supp.h +++ b/ports/sysdeps/powerpc/nofpu/soft-supp.h @@ -26,6 +26,11 @@ typedef union } fenv_union_t; +/* FIXME: these variables should be thread specific (see bugzilla bug + 15483) and ideally preserved across signal handlers, like hardware + FP status words, but the latter is quite difficult to accomplish in + userland. */ + extern int __sim_exceptions; libc_hidden_proto (__sim_exceptions); extern int __sim_disabled_exceptions; -- cgit 1.4.1