From d04b77acc8b7660ee15f53de421fe0523465fd4b Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 11 Feb 2005 20:18:59 +0000 Subject: [PATCH] linux-unwind.h (mips_fallback_frame_state): Adjust offsets for the big-endian 32-bit case. * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust offsets for the big-endian 32-bit case. From-SVN: r94888 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/linux-unwind.h | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dd6defd9463..f41bfac366b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-02-11 Daniel Jacobowitz + + * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust + offsets for the big-endian 32-bit case. + 2005-02-11 Joseph S. Myers * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define. diff --git a/gcc/config/mips/linux-unwind.h b/gcc/config/mips/linux-unwind.h index afe06cbff24..8a41c8c7757 100644 --- a/gcc/config/mips/linux-unwind.h +++ b/gcc/config/mips/linux-unwind.h @@ -86,6 +86,13 @@ mips_fallback_frame_state (struct _Unwind_Context *context, fs->cfa_reg = STACK_POINTER_REGNUM; fs->cfa_offset = new_cfa - (_Unwind_Ptr) context->cfa; +#if _MIPS_SIM == _ABIO32 && defined __MIPSEB__ + /* On o32 Linux, the register save slots in the sigcontext are + eight bytes. We need the lower half of each register slot, + so slide our view of the structure back four bytes. */ + new_cfa -= 4; +#endif + for (i = 0; i < 32; i++) { fs->regs.reg[i].how = REG_SAVED_OFFSET; fs->regs.reg[i].loc.offset -- 2.30.2