This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/45682] missing namespace parent die when using -gdwarf-4
- From: "ccoutant at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 Jan 2012 18:57:49 +0000
- Subject: [Bug debug/45682] missing namespace parent die when using -gdwarf-4
- Auto-submitted: auto-generated
- References: <bug-45682-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45682
--- Comment #4 from Cary Coutant <ccoutant at gcc dot gnu.org> 2012-01-20 18:57:49 UTC ---
Author: ccoutant
Date: Fri Jan 20 18:57:44 2012
New Revision: 183348
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183348
Log:
2012-01-19 Cary Coutant <ccoutant@google.com>
Dodji Seketeli <dodji@redhat.com>
gcc/
PR debug/45682
* dwarf2out.c (copy_declaration_context): Return ref to parent
of declaration DIE, if necessary.
(remove_child_or_replace_with_skeleton): Add new parameter; update
caller. Place skeleton DIE under parent DIE of original declaration.
Move call to copy_declaration_context to here ...
(break_out_comdat_types): ... from here.
gcc/testsuite/
PR debug/45682
* g++.dg/debug/dwarf2/nested-3.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/debug/dwarf2/nested-3.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c
trunk/gcc/testsuite/ChangeLog