This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ARM: Fix sibcall patterns
- To: Philip Blundell <philb at gnu dot org>
- Subject: Re: ARM: Fix sibcall patterns
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Wed, 03 Jan 2001 10:33:56 +0000
- Cc: gcc-patches at gcc dot gnu dot org
- Cc: rearnsha at arm dot com
- Organization: ARM Ltd.
- Reply-To: rearnsha at arm dot com
> On 29 Nov 2000, Richard Earnshaw wrote:
>
> >This patch fixes the sibling call patterns on the ARM, so that they can
> >never match a normal call insn pattern.
>
> Unfortunately, it also has the side effect of preventing the lr save from
> being eliminated, since arm_expand_prologue thinks that lr is live. A trivial
> testcase like "int bar(int a) { return foo(a); }" now gives:
Yes, I noticed this as well, just before I left for Xmas; I'll try to
think up a way of expressing the pattern so that this is avoided.
R.