This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: template memory
- To: jbuck at synopsys dot com (Joe Buck), egcs at cygnus dot com
- Subject: Re: template memory
- From: Jason Merrill <jason at cygnus dot com>
- Date: 01 Oct 1997 10:30:01 -0700
- References: <199709301900.MAA00044.cygnus.egcs@atrus.synopsys.com>
>>>>> Joe Buck <jbuck@synopsys.com> writes:
> At the risk of asking a stupid question:
> OK, let's say someone twisted your arm and said that you *must* free
> memory for a template instantiation after you generate it, unless it
> is an inline function. What breaks? Why can't you just generate a
> weak symbol immediately?
Actually, the earlier discussion was misleading; in fact, only inlines are
kept around. Non-inlines aren't implicitly instantiated until end of file,
at which point we know what to do with them.
Jason