aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2016-11-03 15:52:58 -0400
committerJason Merrill <jason@gcc.gnu.org>2016-11-03 15:52:58 -0400
commit1906d6b4dc4cf6bddb82e9dc3534438230030a8e (patch)
treebba16b05930156885aa3e5b7fb63e4b7cfd29e1f /gcc/tree.h
parentb302001e3a04e8d2911989816c8907bf3e5c2389 (diff)
downloadgcc-1906d6b4dc4cf6bddb82e9dc3534438230030a8e.zip
gcc-1906d6b4dc4cf6bddb82e9dc3534438230030a8e.tar.gz
gcc-1906d6b4dc4cf6bddb82e9dc3534438230030a8e.tar.bz2
Use type_hash_eq langhook in check_qualified_type.
gcc/ * tree.c (check_lang_type): New. (check_qualified_type): Use it. (check_aligned_type): Use it. * tree.h: Declare it. gcc/cp/ * tree.c (cp_check_qualified_type): Call check_base_type instead of check_qualified_type. (cxx_type_hash_eq): Check ref-qualifiers. * typeck.c (apply_memfn_quals): No need to mess with TYPE_CANONICAL. From-SVN: r241831
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 531bc5e..6a98b6e 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -4214,6 +4214,11 @@ extern tree merge_dllimport_decl_attributes (tree, tree);
/* Handle a "dllimport" or "dllexport" attribute. */
extern tree handle_dll_attribute (tree *, tree, tree, int, bool *);
+/* Returns true iff CAND and BASE have equivalent language-specific
+ qualifiers. */
+
+extern bool check_lang_type (const_tree cand, const_tree base);
+
/* Returns true iff unqualified CAND and BASE are equivalent. */
extern bool check_base_type (const_tree cand, const_tree base);