purify experiments
Joe Buck
jbuck@synopsys.com
Tue Sep 30 11:05:00 GMT 1997
> > So it seems that the problem must be related to too much being saved in
> > obstacks. Are all the generated template functions being saved, as for
> > inline functions?
>
> Yes, and for the same reason: we don't know how they should be handled
> until end-of-file.
Wasn't this clarified by the committee and the addition of the "export"
keyword? That is, shouldn't a template be always treated as a static
function, unless export is given? Then it should only be necessary to
save a template function if it is an inline function or a candidate for
inlining.
Or is there something I'm missing?
Also, even if we *do* need to save everything, any clues as to why the
representation is so large? It's on the order of 1000 times as large
as simply writing out the .ii file three times (for the three different
expansions).
More information about the Gcc
mailing list