diff options
| author | kkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-16 02:44:10 +0000 |
|---|---|---|
| committer | kkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-16 02:44:10 +0000 |
| commit | 439ce31f0e0ca4964b5927ddcaa8f0de7423caa4 (patch) | |
| tree | f07f90453577dd978a46b2ca2b879b031dab4461 /libjava/include | |
| parent | 3da996b9f68936a12578bd6327e7101c61f3bf1b (diff) | |
| download | ppe42-gcc-439ce31f0e0ca4964b5927ddcaa8f0de7423caa4.tar.gz ppe42-gcc-439ce31f0e0ca4964b5927ddcaa8f0de7423caa4.zip | |
* config/sh/linux-unwind.h (shmedia_fallback_frame_state): Set
fs->signal_frame.
(sh_fallback_frame_state): Likewise.
* include/sh-signal.h (MAKE_THROW_FRAME): Change into empty
macro.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112122 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include')
| -rw-r--r-- | libjava/include/sh-signal.h | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/libjava/include/sh-signal.h b/libjava/include/sh-signal.h index 25e873117ff..3a96ce25fb2 100644 --- a/libjava/include/sh-signal.h +++ b/libjava/include/sh-signal.h @@ -1,7 +1,7 @@ // sh-signal.h - Catch runtime signals and turn them into exceptions // on a SuperH based Linux system. -/* Copyright (C) 2004 Free Software Foundation +/* Copyright (C) 2004, 2006 Free Software Foundation This file is part of libgcj. @@ -33,28 +33,7 @@ typedef struct _sig_ucontext { #define SIGNAL_HANDLER(_name) \ static void _name (int , siginfo_t *, sig_ucontext_t *_uc) -/* SH either leaves PC pointing at a faulting instruction or the - following instruction, depending on the signal. SEGV always does - the former, so we adjust the saved PC to point to the following - instruction. This is what the handler in libgcc expects. */ - -#ifdef __SH5__ -#define MAKE_THROW_FRAME(_exception) \ -do \ - { \ - volatile struct sigcontext *_sc = &_uc->uc_mcontext; \ - _sc->sc_pc += 4; \ - } \ -while (0) -#else -#define MAKE_THROW_FRAME(_exception) \ -do \ - { \ - volatile struct sigcontext *_sc = &_uc->uc_mcontext; \ - _sc->sc_pc += 2; \ - } \ -while (0) -#endif +#define MAKE_THROW_FRAME(_exception) /* For an explanation why we cannot simply use sigaction to install the handlers, see i386-signal.h. */ |

