OSDN Git Service

PR debug/47510
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Mar 2011 21:04:58 +0000 (21:04 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Mar 2011 21:04:58 +0000 (21:04 +0000)
commit37b41f90b47ff6012d2505f2556de23c458715a6
treedff3437743f8faab4d8acbc419ea5f338f98473b
parent988ff48d0d1762ea2f1d00fa7b19d861a38d82ee
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171073 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/typedef6.C [new file with mode: 0644]