commit 0a49042b9151e0387efc5f87c32cb24968896ae4 Author: Aldy Hernandez Date: Tue Mar 17 12:29:27 2015 -0700 Equate new DIE containing a DW_AT_specification, to the original declaration. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 86815be..c7345d9 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -18809,6 +18809,8 @@ gen_subprogram_die (tree decl, dw_die_ref context_die) add_type_attribute (subr_die, TREE_TYPE (TREE_TYPE (decl)), TYPE_UNQUALIFIED, context_die); } + if (early_dwarf_dumping) + equate_decl_number_to_die (decl, subr_die); } } /* Anything else... create a brand new DIE. */