This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: investigation of tail calls on mainline
- From: Fergus Henderson <fjh at cs dot mu dot OZ dot AU>
- To: Brad Lucier <lucier at math dot purdue dot edu>
- Cc: gcc at gcc dot gnu dot org, feeley at iro dot umontreal dot ca
- Date: Fri, 13 Dec 2002 15:39:54 +1100
- Subject: Re: investigation of tail calls on mainline
- References: <200212121523.gBCFNrr09503@banach.math.purdue.edu>
On 12-Dec-2002, Brad Lucier <lucier@math.purdue.edu> wrote:
> MLton gave up on computed gotos a few years ago when there were still bugs in
> GCC's implementation, but may look at them again after I assured them that
> computed gotos now work properly ;-).
Well, computed gotos may work properly, but the program that you attached
also made use of global register variables, and global register variables
don't work properly. If you use global register variables, the GCC code
generator can (and sometimes does) throw up its hands whenever it gets
to anything complicated, e.g. an assignment statement.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.