This is the mail archive of the
mailing list for the GCC project.
Re: forcing tail/sibling call optimization
- To: law at redhat dot com
- Subject: Re: forcing tail/sibling call optimization
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Mon, 27 Nov 2000 11:04:32 -0500
- cc: dewar at gnat dot com (Robert Dewar), fjh at cs dot mu dot oz dot au, gcc at gcc dot gnu dot org
>>>>> Jeffrey A Law writes:
Jeff> Instead of tagging the return itself, couldn't we use an attribute which
Jeff> would (in effect) tell the optimizer that any tail call in the function
Jeff> is safe to optimize? Yes, we lose the ability to specify that a specific
Jeff> call site is safe to optimize, but we don't have to invent yet another
Jeff> GCC extension of dubious value.
I completely agree that this should be implemented using the GCC
Extension of function attributes and not a new call-site keyword.