diff options
author | Martin Jambor <mjambor@suse.cz> | 2016-12-07 14:09:07 +0100 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2016-12-07 14:09:07 +0100 |
commit | 716c5aced1f3e998df4a5d78eba4e090a332acee (patch) | |
tree | 382d61298afceeb221d0738fc43070a957f18dd4 /gcc | |
parent | 098eae0067631ae7a8d98ac19ff47cb89ec2ba25 (diff) | |
download | gcc-716c5aced1f3e998df4a5d78eba4e090a332acee.zip gcc-716c5aced1f3e998df4a5d78eba4e090a332acee.tar.gz gcc-716c5aced1f3e998df4a5d78eba4e090a332acee.tar.bz2 |
Use dump_function_name rather than emit <built-in>
2016-12-07 Martin Jambor <mjambor@suse.cz>
PR c++/78589
* error.c (dump_decl): Use dump_function_name to dump
!DECL_LANG_SPECIFIC function decls with no or self-referencing
abstract origin.
From-SVN: r243344
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/cp/error.c | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index c666f16..a59d25b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,10 @@ +2016-12-07 Martin Jambor <mjambor@suse.cz> + + PR c++/78589 + * error.c (dump_decl): Use dump_function_name to dump + !DECL_LANG_SPECIFIC function decls with no or self-referencing + abstract origin. + 2016-12-07 Nathan Sidwell <nathan@acm.org> * pt.c (tsubst <{NON,}TYPE_ARGUMENT_PACK>: Simplify control flow diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 7bf07c3..5f8fb2a 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -1216,10 +1216,11 @@ dump_decl (cxx_pretty_printer *pp, tree t, int flags) case FUNCTION_DECL: if (! DECL_LANG_SPECIFIC (t)) { - if (DECL_ABSTRACT_ORIGIN (t)) + if (DECL_ABSTRACT_ORIGIN (t) + && DECL_ABSTRACT_ORIGIN (t) != t) dump_decl (pp, DECL_ABSTRACT_ORIGIN (t), flags); else - pp_string (pp, M_("<built-in>")); + dump_function_name (pp, t, flags); } else if (DECL_GLOBAL_CTOR_P (t) || DECL_GLOBAL_DTOR_P (t)) dump_global_iord (pp, t); |