From: Jason Merrill Date: Mon, 7 Nov 2016 19:35:13 +0000 (-0500) Subject: Add template instantiations to the announce_function stream. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c9c039100a92c57714d3813b2d7d495a59963368;p=gcc.git 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e567fefd627..6f063e7534a 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2016-11-07 Jason Merrill + + * pt.c (push_tinst_level_loc): Add template instantiations to the + announce_function stream. + 2016-11-04 Paolo Carlini PR c++/67980 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index c8d4a066c5d..f910d40055f 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 (); new_level->decl = d; new_level->locus = loc;