From: Richard Biener Date: Thu, 10 Apr 2014 16:20:07 +0000 (+0000) Subject: re PR ipa/60761 (Improve dump_decl for clones) X-Git-Tag: basepoints/gcc-5~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8aa1cce64e8d4a443d0b4d01b09ef0015725c65d;p=thirdparty%2Fgcc.git re PR ipa/60761 (Improve dump_decl for clones) PR ipa/60761 * error.c (dump_decl) : If DECL_LANG_SPECIFIC is NULL, but DECL_ABSTRACT_ORIGIN is not, recurse on DECL_ABSTRACT_ORIGIN instead of printing . Co-Authored-By: Jakub Jelinek From-SVN: r209278 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 3c09daa3f649..afbf24ace950 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,12 @@ +2014-04-10 Richard Biener + Jakub Jelinek + + PR ipa/60761 + * error.c (dump_decl) : If + DECL_LANG_SPECIFIC is NULL, but DECL_ABSTRACT_ORIGIN is not, + recurse on DECL_ABSTRACT_ORIGIN instead of printing + . + 2014-04-09 Fabien Chêne * pt.c (check_template_variable): Check for the return of pedwarn diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 454feb519897..699d5458a40f 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -1145,7 +1145,12 @@ dump_decl (cxx_pretty_printer *pp, tree t, int flags) case FUNCTION_DECL: if (! DECL_LANG_SPECIFIC (t)) - pp_string (pp, M_("")); + { + if (DECL_ABSTRACT_ORIGIN (t)) + dump_decl (pp, DECL_ABSTRACT_ORIGIN (t), flags); + else + pp_string (pp, M_("")); + } else if (DECL_GLOBAL_CTOR_P (t) || DECL_GLOBAL_DTOR_P (t)) dump_global_iord (pp, t); else