This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70201] Dump C++ template instantiations
- From: "andres.tiraboschi at tallertechnologies dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 06 May 2016 14:46:22 +0000
- Subject: [Bug c++/70201] Dump C++ template instantiations
- Auto-submitted: auto-generated
- References: <bug-70201-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70201
AndrÃs AgustÃn Tiraboschi <andres.tiraboschi at tallertechnologies dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #38139|0 |1
is obsolete| |
--- Comment #6 from AndrÃs AgustÃn Tiraboschi <andres.tiraboschi at tallertechnologies dot com> ---
Created attachment 38428
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38428&action=edit
Patch adding new flag in order to dump information about template
instantiations.
Changelog
2016-05-6 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
* gcc/c-family/c.opt (ftemplate-instantiations): New flag.
* gcc/flag-types.h (ti_dump_options): New type.
* gcc/cp/decl2.c (cp_write_global_declarations): Added code to dump
information.
* gcc/cp/pt.h: New file.
* gcc/cp/pt.h (template_instantiations_callbacks): New type.
(dependence_tree): Likewise.
(call_template_instantiation_callbacks): Declare.
(add_template_instantiations_callbacks): Likewise.
(clean_up_callbacks): Likewise.
* gcc/cp/pt.c (human_readable_template_instantiations): New type.
(instantiation_callbacks): Declare.
(call_template_instantiation_callback): New function.
(add_template_instantiations_callbacks): Likewise.
(initialize_instantiations_callbacks): Likewise.
(clean_up_callbacks): Likewise.
(init_template_processing): Added code to initialize
instatiation_callbacks.
(register_specialization): Added code to dump information.
(retrieve_specialization): Likewise.
(lookup_template_class): Likewise.
(lookup_template_function): Likewise.
* gcc/doc/invoke.texi (ftemplate-instantiations): Added documentation.
* gcc/cp/config-lang.in (gtfiles): Added \$(srcdir)/cp/pt.h
* gcc/cp/Make-lang.in (CP_PLUGIN_HEADERS): Added pt.h.
* gcc/cp/cp-lang.c: pt.h included.