dwarf2out.c (struct external_ref, [...]): New.
authorJason Merrill <jason@redhat.com>
Thu, 3 May 2012 19:55:16 +0000 (15:55 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 3 May 2012 19:55:16 +0000 (15:55 -0400)
commit05688bf703428871ef285958d1f4cf644017c4f1
treee8876d4b5b803b492b0d913c0c863dbd00026f2d
parentf95f017c421cb6ae4e5adc7a8a51ab68df4b40ac
dwarf2out.c (struct external_ref, [...]): New.

* dwarf2out.c (struct external_ref, build_local_stub): New.
(hash_external_ref, external_ref_eq, lookup_external_ref): New.
(optimize_external_refs, optimize_external_refs_1): New.
(change_AT_die_ref): New.
(clone_as_declaration): Add DW_AT_signature when cloning a declaration.
(build_abbrev_table): Take the external refs hashtable.
(output_comp_unit): Get it from optimize_external_refs and pass it in.

From-SVN: r187116
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/nested-3.C