This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
m68k call frame support
- To: gcc <gcc at gcc dot gnu dot org>
- Subject: m68k call frame support
- From: Roman Zippel <zippel at linux-m68k dot org>
- Date: Thu, 02 Aug 2001 19:19:08 +0200
Hi,
I'm trying to add support call frame exception handling, I added these
macros:
#define EH_RETURN_DATA_REGNO(N) ((N) < 2 ? (N) : INVALID_REGNUM)
#define EH_RETURN_STACKADJ_RTX gen_rtx_REG (Pmode, 8)
#define EH_RETURN_HANDLER_RTX gen_rtx_MEM (Pmode, plus_constant
(arg_pointer_rtx, 4))
But it doesn't work yet, with gdb I see it crashing in _Unwind_SetGR
coming from __gxx_personality_v0:
_Unwind_SetGR (context, __builtin_eh_return_data_regno (0),
(_Unwind_Ptr) &xh->unwindHeader);
When I check the context, I see that the registers d0/d1/a0/a1 aren't
initialised. Where should this happen? What am I missing?
bye, Roman