This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/47510] [4.6 Regression] DW_TAG_typedef can have children when designating a naming typedef
- From: "dodji at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 17 Mar 2011 16:41:41 +0000
- Subject: [Bug debug/47510] [4.6 Regression] DW_TAG_typedef can have children when designating a naming typedef
- Auto-submitted: auto-generated
- References: <bug-47510-4@http.gcc.gnu.org/bugzilla/>
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