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/41828] DW_AT_name should not be present for anonymous aggregates



------- Comment #2 from jakub at gcc dot gnu dot org  2009-10-26 20:18 -------
Subject: Bug 41828

Author: jakub
Date: Mon Oct 26 20:18:26 2009
New Revision: 153568

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=153568
Log:
        PR debug/41828
        * cp-lang.c (cxx_dwarf_name): Return NULL instead of
        <anonymous ...> for anonymous aggregate names.

        * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
        add_name_and_src_coords_attributes, gen_namespace_die,
        dwarf2out_set_name): Handle dwarf2_name returning NULL.

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

Added:
    trunk/gcc/testsuite/g++.dg/debug/dwarf2/anonname1.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-lang.c
    trunk/gcc/dwarf2out.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41828


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