proper tail recursion for gcc

Richard Henderson rth@cygnus.com
Thu Jul 20 13:47:00 GMT 2000


On Thu, Jul 20, 2000 at 08:37:11PM +0000, Mark Probst wrote:
> ... but if foo knew that bar might do a tail call to a non-static
> function, it could reload $gp and everything would be fine.

Not unless you communicate that knowledge to the linker
as well, which attempts to remove gp loads that are not
necessary.  Not necessary, that is, if you're following
the ABI rules.


r~


More information about the Gcc mailing list