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 Regression] DW_TAG_typedef can have children when designating a naming typedef


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

--- Comment #11 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-03-17 16:41:24 UTC ---
Author: dodji
Date: Thu Mar 17 16:41:05 2011
New Revision: 171105

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171105
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:
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/debug/dwarf2/typedef6.C
Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/dwarf2out.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog


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