diff options
author | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-29 17:50:50 +0000 |
---|---|---|
committer | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-29 17:50:50 +0000 |
commit | 6b48665a4fe988242a33078ea2cfae8914f08856 (patch) | |
tree | e8a819f21050f165845bdc2be079418c748fcfae /libjava/include/i386-signal.h | |
parent | 8bffa3779c3ec8826ca070c2b9f83eb626ee0544 (diff) | |
download | gcc-6b48665a4fe988242a33078ea2cfae8914f08856.tar.gz |
2001-05-29 Andrew Haley <aph@redhat.com>
* include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
pointer: the dwarf unwinder in libgcc will do everything that's
needed.
(HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
more than we absolutely need to.
* configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
* configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
Alpha.
(SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
"$libgcj_sjlj".
* configure: Rebuilt.
* include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
for Alpha.
(SIGNAL_HANDLER): Use siginfo style handler.
(INIT_SEGV): Likewise.
(INIT_FPE): Likewise.
* include/ppc-signal.h: Delete whole file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42691 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include/i386-signal.h')
-rw-r--r-- | libjava/include/i386-signal.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/libjava/include/i386-signal.h b/libjava/include/i386-signal.h index dc3c1122c51..f89a0b16217 100644 --- a/libjava/include/i386-signal.h +++ b/libjava/include/i386-signal.h @@ -31,16 +31,11 @@ do \ void **_p = (void **)&_dummy; \ struct sigcontext_struct *_regs = (struct sigcontext_struct *)++_p; \ \ - register unsigned long _ebp = _regs->ebp; \ - register unsigned char *_eip = (unsigned char *)_regs->eip; \ - \ /* Advance the program counter so that it is after the start of the \ instruction: the x86 exception handler expects \ the PC to point to the instruction after a call. */ \ - _eip += 2; \ + _regs->eip += 2; \ \ - asm volatile ("mov %0, (%%ebp); mov %1, 4(%%ebp)" \ - : : "r"(_ebp), "r"(_eip)); \ } \ while (0) @@ -63,7 +58,7 @@ do \ * As the instructions are variable length it is necessary to do a \ * little calculation to figure out where the following instruction \ * actually is. \ - \ + \ */ \ \ if (_eip[0] == 0xf7) \ @@ -104,6 +99,9 @@ do \ \ _eip = (unsigned char *)_ebp[1]; \ _ebp = (unsigned long *)_ebp[0]; \ + \ + asm volatile ("mov %0, (%%ebp); mov %1, 4(%%ebp)" \ + : : "r"(_ebp), "r"(_eip)); \ } \ else \ { \ @@ -111,12 +109,9 @@ do \ of the instruction: this is because the x86 exception \ handler expects the PC to point to the instruction after a \ call. */ \ - _eip += 2; \ + _regs->eip += 2; \ } \ } \ - \ - asm volatile ("mov %0, (%%ebp); mov %1, 4(%%ebp)" \ - : : "r"(_ebp), "r"(_eip)); \ } \ while (0) |