[multiple changes]
authorAndreas Krebbel <krebbel@gcc.gnu.org>
Thu, 25 Sep 2014 07:37:36 +0000 (07:37 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Thu, 25 Sep 2014 07:37:36 +0000 (07:37 +0000)
commitabdc17f81403fa566c44812777296c6d825c3e65
tree1eb41a28a86278bb43999debd91dff6244dd8c2a
parentd90c0a5980ceedb40f9f7536c32f17856997435a
[multiple changes]

2014-09-25  Andreas Arnez  <arnez@linux.vnet.ibm.com>

PR 63300/debug
* tree.c (check_base_type): New.
(check_qualified_type): Exploit new helper function above.
* tree.h (check_base_type): New prototype.
* dwarf2out.c (get_nearest_type_subqualifiers): New.
(modified_type_die): Fix handling for qualifiers.  Qualifiers to
"peel off" are now determined using get_nearest_type_subqualifiers.

2014-09-25  Mark Wielaard  <mjw@redhat.com>

PR 63300/debug
* gcc.dg/debug/dwarf2/stacked-qualified-types-1.c: New testcase.
* gcc.dg/debug/dwarf2/stacked-qualified-types-2.c: Likewise.
* gcc.dg/guality/pr63300-const-volatile.c: New testcase.

From-SVN: r215582
gcc/dwarf2out.c
gcc/testsuite/gcc.dg/debug/dwarf2/stacked-qualified-types-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/debug/dwarf2/stacked-qualified-types-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/guality/pr63300-const-volatile.c [new file with mode: 0644]
gcc/tree.c
gcc/tree.h