Linux/PPC gcc 2.95.2 - bad access generated when using inline func
Franz Sirl
Franz.Sirl-kernel@lauterbach.com
Wed Jun 28 12:33:00 GMT 2000
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.
More information about the Gcc-bugs
mailing list