dwarf2out.c (add_dwarf_attr): Check we don't add duplicate attributes.
authorRichard Biener <rguenther@suse.de>
Wed, 30 Aug 2017 09:29:05 +0000 (09:29 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 30 Aug 2017 09:29:05 +0000 (09:29 +0000)
commit36ef8e6fd289536162414baedf3ba9166850ceb2
treed5566a3098b133053be99a7f8a79c893ec483780
parent68905c2883c62197cde61b38ec51ef16a0b1f0af
dwarf2out.c (add_dwarf_attr): Check we don't add duplicate attributes.

2017-08-30  Richard Biener  <rguenther@suse.de>

* dwarf2out.c (add_dwarf_attr): Check we don't add duplicate
attributes.
(gen_subprogram_die): Add DW_AT_object_pointer only early.
(dwarf2out_early_global_decl): Only generate a DIE for the
abstract origin if it doesn't already exist or is a declaration DIE.
(resolve_addr): Do not add the linkage name twice when
generating a stub DIE for the DW_TAG_GNU_call_site target.

* g++.dg/pr78112-2.C: Do not expect duplicate DW_AT_object_pointer.

From-SVN: r251448
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr78112-2.C