re PR debug/27017 (Debug information for static local class members are not emitted)
authorJakub Jelinek <jakub@redhat.com>
Thu, 13 Nov 2008 21:04:32 +0000 (22:04 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 13 Nov 2008 21:04:32 +0000 (22:04 +0100)
commit2db56bbc02cebb8fd46a62776ef209f4e945ae18
tree5984652bd92b5b512b5029b2254b987961bc499d
parenta231ffe57d357887ff7702b0564f69b5d82fb5fd
re PR debug/27017 (Debug information for static local class members are not emitted)

PR c++/27017
* dwarf2out.c (prune_unused_types_walk_local_classes): New function.
(prune_unused_types_walk): Call it for non-perennial local classes.
Set die_mark to 2 if recursing on children.  If die_mark is 1 on
entry, just set it to 2 and recurse on children, don't walk attributes
again.

* g++.dg/debug/dwarf2/localclass1.C: New test.
* g++.dg/debug/dwarf2/localclass2.C: New test.

From-SVN: r141829
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/localclass1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/debug/dwarf2/localclass2.C [new file with mode: 0644]