http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47510
--- Comment #8 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-03-16 21:11:19 UTC --- Author: dodji Date: Wed Mar 16 21:11:17 2011 New Revision: 171074 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171074 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