This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/45682] missing namespace parent die when using -gdwarf-4


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]