This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, ARM] Fix PR42017, LR not used in leaf functions
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Richard Sandiford <rdsandiford at googlemail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, "Chung-Lin Tang" <cltang at codesourcery dot com>, Richard Earnshaw <rearnsha at arm dot com>, Ramana Radhakrishnan <ramana dot radhakrishnan at arm dot com>
- Date: Thu, 19 May 2011 15:12:37 +0200
- Subject: Re: [patch, ARM] Fix PR42017, LR not used in leaf functions
- References: <4DB8DB6D.1050107@codesourcery.com> <g41v0fyl1p.fsf@linaro.org> <g41v021xt9.fsf@googlemail.com>
> > It seems a lot of other ports suffer from the same problem though.
> > I wonder which targets really do want to make a register live throughout
> > the function? If none do, perhaps we should say that this macro is
> > only meaningful once the epilogue has been generated.
>
> To answer my own question, I suppose VRSAVE is one. So I was wrong
> about the target-independent "fix".
We have %i7 on the SPARC (register where the return address register is saved).
--
Eric Botcazou