OSDN Git Service

PR debug/45997
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Dec 2010 19:33:52 +0000 (19:33 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Dec 2010 19:33:52 +0000 (19:33 +0000)
commitd8452f7db3e62eab00a148d21c1f0c92920069f4
treec541315741187be413c024615beee7062b2baad9
parent7f2c335b50b7a0074776a06e9a30bf830c0cd83e
PR debug/45997
* dwarf2out.c (modified_type_die): If both is_const_type and
is_volatile_type is set, start with DW_TAG_const_type or
DW_TAG_volatile_type depending on where we get qualified type
in the recursive call.

* g++.dg/debug/dwarf2/pr45997-1.C: New test.
* g++.dg/debug/dwarf2/pr45997-2.C: New test.

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