]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR debug/54508 (Wrong debug information emitted if data members not referenced)
authorPaul Koning <ni1d@arrl.net>
Tue, 23 Oct 2012 18:44:27 +0000 (14:44 -0400)
committerPaul Koning <pkoning@gcc.gnu.org>
Tue, 23 Oct 2012 18:44:27 +0000 (14:44 -0400)
commita17d5a98417753708f385f0aab3a9cbcd2f1952a
treec683ea50ebea1be10dfc5c7e2eee5a1f7bfb42fc
parent22531fb1957ca61debd68c6d3bbc16899b907ba8
re PR debug/54508 (Wrong debug information emitted if data members not referenced)

PR debug/54508
* dwarf2out.c (prune_unused_types_prune): If pruning a class and
not all its children were marked, add DW_AT_declaration flag.

* g++.dg/debug/dwarf2/pr54508.C: New.

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