This is the mail archive of the
mailing list for the GCC project.
Re: [arm] avoid short ldm in epilogue
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Philip Blundell <pb at nexus dot co dot uk>
- Cc: gcc-patches at gcc dot gnu dot org, Richard dot Earnshaw at arm dot com
- Date: Tue, 20 May 2003 17:13:12 +0100
- Subject: Re: [arm] avoid short ldm in epilogue
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> output_return_instruction already uses LDR to restore the PC if no other
> registers need to be popped. This patch makes arm_output_epilogue do
> the same thing.
> 2003-05-16 Philip Blundell <email@example.com>
> * config/arm/arm.c (arm_output_epilogue): Restore PC with ldr not
> ldm when possible.
OK. You should also handle the case where a single register other than
the PC is being restored from the stack (eg the PIC register)