diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-05-03 12:15:05 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-05-03 12:15:05 +0000 |
commit | 6fe63fb43f5ff71bbd5ba4b3e6128bfdd5efe37d (patch) | |
tree | 5e19613b53174533182ee0857af5ce77c9c9f137 /gcc/tree.h | |
parent | 49ab46214e9288ee1268f87ddcd64dacfd21c31d (diff) | |
download | gcc-6fe63fb43f5ff71bbd5ba4b3e6128bfdd5efe37d.zip gcc-6fe63fb43f5ff71bbd5ba4b3e6128bfdd5efe37d.tar.gz gcc-6fe63fb43f5ff71bbd5ba4b3e6128bfdd5efe37d.tar.bz2 |
Canonicalize canonical type hashing
Canonicalize canonical type hashing
gcc/
* tree.h (type_hash_canon_hash): Declare.
* tree.c (type_hash_list, attribute_hash_list): Move into
type_hash_canon_hash.
(build_type_attribute_qual_variant): Break out hash code calc into
type_hash_canon_hash.
(type_hash_canon_hash): New. Generic type hash computation.
(build_range_type_1, build_array_type_1, build_function_type)
build_method_type_directly, build_offset_type, build_complex_type,
make_vector_type): Call it.
gcc/c-family/
* c-common.c (complete_array_type): Use type_hash_canon.
(--This line, and those below, will be ignored--
M gcc/tree.c
M gcc/tree.h
M gcc/c-family/ChangeLog
M gcc/c-family/c-common.c
M gcc/ChangeLog
From-SVN: r247546
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4303,6 +4303,7 @@ extern tree build_variant_type_copy (tree CXX_MEM_STAT_INFO); How the hash code is computed is up to the caller, as long as any two callers that could hash identical-looking type nodes agree. */ +extern hashval_t type_hash_canon_hash (tree); extern tree type_hash_canon (unsigned int, tree); extern tree convert (tree, tree); |