diff options
author | Richard Biener <rguenther@suse.de> | 2014-04-10 16:20:07 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-04-10 18:20:07 +0200 |
commit | 8aa1cce64e8d4a443d0b4d01b09ef0015725c65d (patch) | |
tree | 3bfbce59b082c193f3e68065bbdaccc3473c6a0b /gcc/cp/error.c | |
parent | 073afca6884441dd85e6a5a55acd61c9d1442f7a (diff) | |
download | gcc-8aa1cce64e8d4a443d0b4d01b09ef0015725c65d.zip gcc-8aa1cce64e8d4a443d0b4d01b09ef0015725c65d.tar.gz gcc-8aa1cce64e8d4a443d0b4d01b09ef0015725c65d.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 454feb5..699d545 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_("<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)) dump_global_iord (pp, t); else |