Commit 8aa1cce6 by Richard Biener Committed by Jakub Jelinek

re PR ipa/60761 (Improve dump_decl for clones)

	PR ipa/60761
	* error.c (dump_decl) <case FUNCTION_DECL>: If
	DECL_LANG_SPECIFIC is NULL, but DECL_ABSTRACT_ORIGIN is not,
	recurse on DECL_ABSTRACT_ORIGIN instead of printing
	<built-in>.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r209278
parent 073afca6
2014-04-10 Richard Biener <rguenther@suse.de>
Jakub Jelinek <jakub@redhat.com>
PR ipa/60761
* error.c (dump_decl) <case FUNCTION_DECL>: If
DECL_LANG_SPECIFIC is NULL, but DECL_ABSTRACT_ORIGIN is not,
recurse on DECL_ABSTRACT_ORIGIN instead of printing
<built-in>.
2014-04-09 Fabien Chêne <fabien@gcc.gnu.org> 2014-04-09 Fabien Chêne <fabien@gcc.gnu.org>
* pt.c (check_template_variable): Check for the return of pedwarn * pt.c (check_template_variable): Check for the return of pedwarn
......
...@@ -1145,7 +1145,12 @@ dump_decl (cxx_pretty_printer *pp, tree t, int flags) ...@@ -1145,7 +1145,12 @@ dump_decl (cxx_pretty_printer *pp, tree t, int flags)
case FUNCTION_DECL: case FUNCTION_DECL:
if (! DECL_LANG_SPECIFIC (t)) if (! DECL_LANG_SPECIFIC (t))
pp_string (pp, M_("<built-in>")); {
if (DECL_ABSTRACT_ORIGIN (t))
dump_decl (pp, DECL_ABSTRACT_ORIGIN (t), flags);
else
pp_string (pp, M_("<built-in>"));
}
else if (DECL_GLOBAL_CTOR_P (t) || DECL_GLOBAL_DTOR_P (t)) else if (DECL_GLOBAL_CTOR_P (t) || DECL_GLOBAL_DTOR_P (t))
dump_global_iord (pp, t); dump_global_iord (pp, t);
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment