This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/54508] Wrong debug information emitted if data members not referenced
- From: "pkoning at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 23 Oct 2012 18:44:33 +0000
- Subject: [Bug debug/54508] Wrong debug information emitted if data members not referenced
- Auto-submitted: auto-generated
- References: <bug-54508-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54508
--- Comment #4 from pkoning at gcc dot gnu.org 2012-10-23 18:44:33 UTC ---
Author: pkoning
Date: Tue Oct 23 18:44:27 2012
New Revision: 192739
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192739
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/debug/dwarf2/pr54508.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c
trunk/gcc/testsuite/ChangeLog