aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2016-11-07 14:35:13 -0500
committerJason Merrill <jason@gcc.gnu.org>2016-11-07 14:35:13 -0500
commitc9c039100a92c57714d3813b2d7d495a59963368 (patch)
tree1adfc97c9137da7f3ea1a28d3c8ff01d29d225a2 /gcc
parent39b4b34de01ef3cc035d0f42b31c171be2af3c7a (diff)
downloadgcc-c9c039100a92c57714d3813b2d7d495a59963368.zip
gcc-c9c039100a92c57714d3813b2d7d495a59963368.tar.gz
gcc-c9c039100a92c57714d3813b2d7d495a59963368.tar.bz2
Add template instantiations to the announce_function stream.
* pt.c (push_tinst_level_loc): Add template instantiations to the announce_function stream. From-SVN: r241928
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/pt.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index e567fef..6f063e7 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2016-11-07 Jason Merrill <jason@redhat.com>
+
+ * pt.c (push_tinst_level_loc): Add template instantiations to the
+ announce_function stream.
+
2016-11-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/67980
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index c8d4a06..f910d40 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -9170,6 +9170,13 @@ push_tinst_level_loc (tree d, location_t loc)
if (limit_bad_template_recursion (d))
return false;
+ /* When not -quiet, dump template instantiations other than functions, since
+ announce_function will take care of those. */
+ if (!quiet_flag
+ && TREE_CODE (d) != TREE_LIST
+ && TREE_CODE (d) != FUNCTION_DECL)
+ fprintf (stderr, " %s", decl_as_string (d, TFF_DECL_SPECIFIERS));
+
new_level = ggc_alloc<tinst_level> ();
new_level->decl = d;
new_level->locus = loc;