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/47510] [4.6/4.7 Regression] DW_TAG_typedef can have children when designating a naming typedef


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

--- Comment #7 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-03-16 21:05:03 UTC ---
Author: dodji
Date: Wed Mar 16 21:04:58 2011
New Revision: 171073

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171073
Log:
PR debug/47510

gcc/

    PR debug/47510
    * dwarf2out.c (strip_naming_typedef): Factorize out of ...
    (lookup_type_die_strip_naming_typedef): ... here.
    (get_context_die): Use it.
    (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
    the anonymous struct named by the naming typedef.

gcc/testsuite/

        PR debug/47510
    * g++.dg/debug/dwarf2/typedef6.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/debug/dwarf2/typedef6.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]