Fix for PR debug/45088
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Dec 2010 10:39:21 +0000 (10:39 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Dec 2010 10:39:21 +0000 (10:39 +0000)
commitfd9fff6dd77c70be7bed8256a7b52c378d239eaf
tree8598995a9270af7853b3d4b0110123f2918a1296
parent5a793d2d0a936e90ec5db7e968707a100e65849f
Fix for PR debug/45088

gcc/

* dwarf2out.c (gen_type_die_with_usage): Do not try to emit debug
info for a redundant typedef that has DECL_ORIGINAL_TYPE set. Use
that underlying type instead.

gcc/testsuite/

* g++.dg/debug/dwarf2/self-ref-1.C: New test.
* g++.dg/debug/dwarf2/self-ref-2.C: Likewise.

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