PR debug/55059
commit7a85a361e48e5f78b5bec679e1cff660c4d282e4
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Jan 2013 18:29:15 +0000 (31 18:29 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Jan 2013 18:29:15 +0000 (31 18:29 +0000)
tree8dbe1b8c90063dc609788e21e0ec4c882763909e
parentebb5939717bde33fb2d004fde47c418d4abab6c9
PR debug/55059
PR debug/54508
* dwarf2out.c (prune_unused_types_mark): Mark all of parent's
children if parent is a class.
(prune_unused_types_prune): Don't add DW_AT_declaration.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195622 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/g++.dg/debug/dwarf2/localclass1.C
gcc/testsuite/g++.dg/debug/dwarf2/localclass2.C
gcc/testsuite/g++.dg/debug/dwarf2/pr54508.C