Re: [Patch, Aarch64]: Handle return address via. frame pointer

2013-07-29 Thread Venkataramanan Kumar
Hi Andrew, I can see that rs6000 port uses a flag "cfun->machine->ra_needs_full_frame = 1". But I need to check if this flag helps to generate frame for all the functions in a compilation unit. The requirement is that frame need to be preserved by any function that calls our function which uses

Re: [Patch, Aarch64]: Handle return address via. frame pointer

2013-07-28 Thread Andrew Pinski
On Sun, Jul 28, 2013 at 3:53 AM, Venkataramanan Kumar wrote: > Hi Maintainers, > > This patch adds supports to handle return address via. frame pointer. I noticed this patch causes undefined behavior when -fomit-frame-pointer and __builtin_return_address(1) is used. On PowerPC it is defined corr

[Patch, Aarch64]: Handle return address via. frame pointer

2013-07-28 Thread Venkataramanan Kumar
Hi Maintainers, This patch adds supports to handle return address via. frame pointer. gcc/ChangeLog - 2013-07-28 Venkataramanan Kumar * config/aarch64/aarch64.c (aarch64_return_addr): Handle returning address from a frame. Regression tested with aarch6