This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/70201] Dump C++ template instantiations


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]