diff options
author | daney <daney@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-03 17:58:52 +0000 |
---|---|---|
committer | daney <daney@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-03 17:58:52 +0000 |
commit | 7469aed1a109553a8a319fdc7cec5dcc7cddb311 (patch) | |
tree | d4e357c1b4d8c846164d59255dd303b650f0045d /libjava/include | |
parent | 908e9a95bcdfaebb60ce9c18405294f4cbda33af (diff) | |
download | gcc-7469aed1a109553a8a319fdc7cec5dcc7cddb311.tar.gz |
2004-09-03 David Daney <ddaney@avtrex.com>
* configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
* include/mips-signal.h: Added HANDLE_FPE support.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87039 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include')
-rw-r--r-- | libjava/include/mips-signal.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/libjava/include/mips-signal.h b/libjava/include/mips-signal.h index 6728197081a..f9d49e66ea0 100644 --- a/libjava/include/mips-signal.h +++ b/libjava/include/mips-signal.h @@ -22,7 +22,7 @@ details. */ sys/ucontext.h included by java-signal.h from prims.cc */ #define HANDLE_SEGV 1 -#undef HANDLE_FPE +#define HANDLE_FPE 1 /* The third parameter to the signal handler points to something with * this structure defined in asm/ucontext.h, but the name clashes with @@ -83,7 +83,19 @@ do \ syscall (SYS_sigaction, SIGSEGV, &kact, NULL); \ } \ while (0) - + +#define INIT_FPE \ +do \ + { \ + struct kernel_sigaction kact; \ + kact.k_sa_handler = catch_fpe; \ + kact.k_sa_flags = SA_SIGINFO | SA_NODEFER; \ + sigemptyset (&kact.k_sa_mask); \ + syscall (SYS_sigaction, SIGFPE, &kact, NULL); \ + } \ +while (0) + +#undef HANDLE_DIVIDE_OVERFLOW #endif /* JAVA_SIGNAL_H */ |