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: Patch for ppc to fix problem with __builtin_return_address in presence of dynamic array allocation



On Aug 15, 2005, at 12:05 PM, David Edelsohn wrote:


The testcase fails on AIX as well.

    I am not sure that the patch is the correct solution.  Why
shouldn't this be fixed in rs6000_return_addr (), for example?

By the time rs6000_return_addr is called it is too late. SP register is needed upfront in routine expand_builtin_return_addr to get to the frame where return address is to be retrieved. rs6000_return_addr assumes that this is already done.


- fariborz


David




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