This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [LTO merge][4/15][RFA] C++ front end
Diego Novillo wrote:
> This is done during the very thorough symbol and type walk we do in
> free_lang_data. We walk down every function body, every symbol, every
> type, ... collecting symbols and types that should be cleared of
> language-dependent information.
>
> For all the VAR_DECL and FUNCTION_DECL symbols we find in this walk,
> we check whether they will need to get an assembler name. We have to
> do this at this point because we end up pulling the front end rug from
> underneath all of them.
I'd suggest not walking into function templates or class templates
during this process. That should avoid seeing anything that's not a
fully specialized template. Jason, does that make sense?
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713