re PR debug/47510 (DW_TAG_typedef can have children when designating a naming typedef)
authorDodji Seketeli <dodji@redhat.com>
Wed, 16 Mar 2011 21:04:58 +0000 (21:04 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Wed, 16 Mar 2011 21:04:58 +0000 (22:04 +0100)
commit7b5cb7d63412fe8599cf9dada904e574d39809f9
treedff3437743f8faab4d8acbc419ea5f338f98473b
parent532c679ea9bdf337fa0c09cbc9b0737b4a4b1aa9
re PR debug/47510 (DW_TAG_typedef can have children when designating a naming typedef)

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.

From-SVN: r171073
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/typedef6.C [new file with mode: 0644]