> > Perhaps the question is when not to use -flto and use -fwhopr instead? > > My rule of thumb is: Try -flto first, if it does not work (running out > of memory), try -fwhopr. I think the advantage of -flto is also that it > is better tested, while -fwhopr has known issues.
-fwhopr is quite broken in the current implementation and I am not sure we can resoably fix it in stage3, so -flto is only choice for the moment for larger programs. If it explodes in memory use, I would be interested in having the testcase. Honza > > Tobias > > [1] http://gcc.gnu.org/ml/gcc/2009-10/msg00122.html > [2] http://moene.org/~toon/GCCSummit-2006.pdf