From abdc17f81403fa566c44812777296c6d825c3e65 Mon Sep 17 00:00:00 2001 From: Andreas Krebbel Date: Thu, 25 Sep 2014 07:37:36 +0000 Subject: [multiple changes] 2014-09-25 Andreas Arnez 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 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/tree.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/tree.h') 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). */ -- cgit v1.1