This is the mail archive of the
mailing list for the GCC project.
Re: [LTO] free_language_specifics crashes C++ pretty-printer
2008/10/9 Richard Guenther <firstname.lastname@example.org>:
> Ok. Still as this is a debugging/diagnostic function only, maybe
> the simplest thing is to just not use the langhook but use
> DECL_NAME always. Or DECL_ASSEMBLER_NAME, as this is more specific in
> the C++ case?
Agreed. Unconditionally emitting DECL_NAME/DECL_ASSEMBLER_NAME is
what we should do here. For future diagnostics, we will probably need
to use the demangler or store demangled names in the lto output.