This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Linux/PPC gcc 2.95.2 - bad access generated when using inline func
On Wed, 28 Jun 2000, Geoff Keating wrote:
> Actually, __builtin_return_address (0) should not give the link
> register, because sometimes the link register holds something else,
> like the return address of something called by this function.
Hmm, can't this be conditionalized on current_function_is_leaf in the
RETURN_ADDR_RTX macro?
> My suspicion is that the right thing to do is force all functions that
> call __builtin_return_address to have a stack frame... I will think
> about it.
Heh, that was my other idea too :-)
Franz.