This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [arm] avoid short ldm in epilogue


> 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.
> 
> p.
> 
> 2003-05-16  Philip Blundell  <philb@gnu.org>
> 
> 	* 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)

R.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]