aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel@gcc.gnu.org>2014-09-25 07:37:36 +0000
committerAndreas Krebbel <krebbel@gcc.gnu.org>2014-09-25 07:37:36 +0000
commitabdc17f81403fa566c44812777296c6d825c3e65 (patch)
tree1eb41a28a86278bb43999debd91dff6244dd8c2a /gcc/tree.h
parentd90c0a5980ceedb40f9f7536c32f17856997435a (diff)
downloadgcc-abdc17f81403fa566c44812777296c6d825c3e65.zip
gcc-abdc17f81403fa566c44812777296c6d825c3e65.tar.gz
gcc-abdc17f81403fa566c44812777296c6d825c3e65.tar.bz2
[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
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index cd3187d..254129a 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -3829,6 +3829,10 @@ extern tree merge_dllimport_decl_attributes (tree, tree);
extern tree handle_dll_attribute (tree *, tree, tree, int, bool *);
#endif
+/* Returns true iff unqualified CAND and BASE are equivalent. */
+
+extern bool check_base_type (const_tree cand, const_tree base);
+
/* Check whether CAND is suitable to be returned from get_qualified_type
(BASE, TYPE_QUALS). */