This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Make some tree-walking functions tail recursive


Hello,

> > I keep running out of stack when compiling some huge functions (like
> > 20001226-1.c).  This patch fixes it by making walk_tree and
> > record_in_finally_tree to use tail recursion.  Bootstrapped and
> > regtested on i686.
> 
> Why doesn't your tail recursion elimination stuff eliminate them?

the first one (walk_tree), because there is no way how compiler could
know about the possibility to do tail recursion.  The second one because
I compile it without optimizations.

Zdenek


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]