aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2004-02-10 13:27:43 +0000
committerAlan Modra <amodra@gcc.gnu.org>2004-02-10 23:57:43 +1030
commitd1d5c836a1a426c224efe898b5bad4ed6f3e055e (patch)
tree9cbd974e4e220d597f62a4a13f920675f34ef268 /gcc
parent6ab36f91824ccdcd505e725201f4bd66b080a8fb (diff)
downloadgcc-d1d5c836a1a426c224efe898b5bad4ed6f3e055e.zip
gcc-d1d5c836a1a426c224efe898b5bad4ed6f3e055e.tar.gz
gcc-d1d5c836a1a426c224efe898b5bad4ed6f3e055e.tar.bz2
linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't bump retaddr here.
* config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't bump retaddr here. * include/powerpc-signal.h: Revert 2004-01-21 change. (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return from syscall for ppc32 versions. From-SVN: r77601
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/linux64.h8
2 files changed, 6 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index babd5fd..1f6b7482 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-02-10 Alan Modra <amodra@bigpond.net.au>
+
+ * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
+ bump retaddr here.
+
2004-02-10 Paolo Bonzini <bonzini@gnu.org>
* rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h
index ae807ba..44f7cb7 100644
--- a/gcc/config/rs6000/linux64.h
+++ b/gcc/config/rs6000/linux64.h
@@ -643,15 +643,9 @@ enum { SIGNAL_FRAMESIZE = 64 };
(FS)->regs.reg[LINK_REGISTER_REGNUM].loc.offset \
= (long)&(sc_->regs->link) - new_cfa_; \
\
- /* The unwinder expects the IP to point to the following insn, \
- whereas the kernel returns the address of the actual \
- faulting insn. We store NIP+4 in an unused register slot to \
- get the same result for multiple evaluation of the same signal \
- frame. */ \
- sc_->regs->gpr[47] = sc_->regs->nip + 4; \
(FS)->regs.reg[ARG_POINTER_REGNUM].how = REG_SAVED_OFFSET; \
(FS)->regs.reg[ARG_POINTER_REGNUM].loc.offset \
- = (long)&(sc_->regs->gpr[47]) - new_cfa_; \
+ = (long)&(sc_->regs->nip) - new_cfa_; \
(FS)->retaddr_column = ARG_POINTER_REGNUM; \
goto SUCCESS; \
} while (0)