This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, ARM] Enable sibling calls for Thumb-2
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Julian Brown <julian at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 21 May 2010 10:57:48 +0100
- Subject: Re: [PATCH, ARM] Enable sibling calls for Thumb-2
- References: <20100215124629.60059fde@rex.config> <1266508025.12619.88.camel@e200601-lin.cambridge.arm.com> <20100426140818.1ae7a43d@rex.config>
On Mon, 2010-04-26 at 14:08 +0100, Julian Brown wrote:
> I've re-tested this on current trunk (with options to generate
> Thumb-2
> code, cross to ARM Linux), and it still shows a couple of
> progressions.
> OK to apply?
>
OK
R.
> Thanks,
>
> Julian
>
> ChangeLog
>
> Julian Brown <julian@codesourcery.com>
> Mark Mitchell <mark@codesourcery.com>
>
> gcc/
> * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
> sibling calls for Thumb-1.
> * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
> * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
> Thumb-2.
> (*call_insn, *call_value_insn): Don't use for Thumb-2.
> (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
> for Thumb-2.
> (return): New expander.
> (*arm_return): New name for ARM return insn.
> * config/arm/thumb2.md (*thumb2_return): New insn pattern.