diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-03-01 21:14:00 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-03-01 21:14:00 +0000 |
commit | 2d791ea645a1593e9c397d152e72a2e72dda9243 (patch) | |
tree | ef52272f484a2478ef4bd8ecdfd176588c6d1e78 /gcc/dwarf2out.c | |
parent | c0e2df1c743b404be86a1aa2bbffd7cd63d717f5 (diff) | |
download | gcc-2d791ea645a1593e9c397d152e72a2e72dda9243.tar.gz |
/cp
2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
* method.c (implicitly_declare_fn): Remove redundant
DECL_TEMPLATE_RESULT and STRIP_TEMPLATE uses.
* semantics.c (is_instantiation_of_constexpr): Likewise.
* error.c (dump_function_decl): Likewise.
2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
* dwarf2out.c (gen_subprogram_die): Tidy.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208248 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 1c3ff03efe5..2b584a58853 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -18028,11 +18028,13 @@ gen_subprogram_die (tree decl, dw_die_ref context_die) /* If the prototype had an 'auto' or 'decltype(auto)' return type, emit the real type on the definition die. */ - if (is_cxx() && debug_info_level > DINFO_LEVEL_TERSE - && (get_AT_ref (old_die, DW_AT_type) == auto_die - || get_AT_ref (old_die, DW_AT_type) == decltype_auto_die)) - add_type_attribute (subr_die, TREE_TYPE (TREE_TYPE (decl)), - 0, 0, context_die); + if (is_cxx() && debug_info_level > DINFO_LEVEL_TERSE) + { + dw_die_ref die = get_AT_ref (old_die, DW_AT_type); + if (die == auto_die || die == decltype_auto_die) + add_type_attribute (subr_die, TREE_TYPE (TREE_TYPE (decl)), + 0, 0, context_die); + } } } else |