This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Converting Sparc to REG_CFA_* notes
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Dave Miller <davem at redhat dot com>
- Date: Mon, 20 Jun 2011 01:37:12 +0200
- Subject: Re: Converting Sparc to REG_CFA_* notes
- References: <4DFE840D.6020609@redhat.com>
> I've tested this via cross-compile and the unwind info is unchanged before
> and after. However, I'll hold off checking it in for the moment until it
> has had a chance to go through a true bootstrap cycle. Dave, might you
> have a moment to do that?
Note that you have SPARC/Linux machines in the Compile Farm.
Minor nits:
+ /* The return address (%i7) is saved in %o7. */
+ add_reg_note (insn, REG_CFA_REGISTER,
+ gen_rtx_SET (VOIDmode,
+ gen_rtx_REG (Pmode, 31),
+ gen_rtx_REG (Pmode, 15)));
We have RETURN_ADDR_REGNUM and INCOMING_RETURN_ADDR_REGNUM nowadays.
+ /* The CFA is %o6, the hard frame pointer. */
+ add_reg_note (insn, REG_CFA_DEF_CFA, hard_frame_pointer_rtx);
%o6 is %sp, the stack pointer. You want %fp (better than %i6 IMO).
--
Eric Botcazou