diff options
author | Andi Kleen <ak@linux.intel.com> | 2014-07-25 13:39:36 +0000 |
---|---|---|
committer | Andi Kleen <ak@gcc.gnu.org> | 2014-07-25 13:39:36 +0000 |
commit | 56fdfd3e85567d87889962e0b08d9190b53bbea1 (patch) | |
tree | 6647dfd08c4e561eeddc5c97f3e108674d6eac43 /gcc/lto | |
parent | 0bd8bb0476ac70d8beeddc9c6434771728df3831 (diff) | |
download | gcc-56fdfd3e85567d87889962e0b08d9190b53bbea1.zip gcc-56fdfd3e85567d87889962e0b08d9190b53bbea1.tar.gz gcc-56fdfd3e85567d87889962e0b08d9190b53bbea1.tar.bz2 |
Convert the tree.c type hashing over to inchash
v2: Use commutative interface. Be much nearer to the old
code.
gcc/:
2014-07-25 Andi Kleen <ak@linux.intel.com>
* tree.c (build_type_attribute_qual_variant): Use inchash.
(type_hash_list): Dito.
(attribute_hash_list): Dito
(iterative_hstate_expr): Dito.
(iterative_hash_expr): Dito.
(build_range_type_1): Dito.
(build_array_type_1): Dito.
(build_function_type): Dito.
(build_method_type_directly): Dito.
(build_offset_type): Dito.
(build_complex_type): Dito.
(make_vector_type): Dito.
* tree.h (iterative_hash_expr): Add compat wrapper.
(iterative_hstate_expr): Add.
gcc/lto/:
2014-07-25 Andi Kleen <ak@linux.intel.com>
* lto.c (hash_canonical_type): Call iterative_hstate_expr.
From-SVN: r213056
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/lto/lto.c | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 1e9788f..8309ab9 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,5 +1,9 @@ 2014-07-25 Andi Kleen <ak@linux.intel.com> + * lto.c (hash_canonical_type): Call iterative_hstate_expr. + +2014-07-25 Andi Kleen <ak@linux.intel.com> + * lto.c (hash_canonical_type): Convert to inchash. (iterative_hash_canonical_type): Dito. diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index c5b3a04..2de00fb 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -327,11 +327,9 @@ hash_canonical_type (tree type) /* OMP lowering can introduce error_mark_node in place of random local decls in types. */ if (TYPE_MIN_VALUE (TYPE_DOMAIN (type)) != error_mark_node) - hstate.add_int (iterative_hash_expr (TYPE_MIN_VALUE ( - TYPE_DOMAIN (type)), 0)); + iterative_hstate_expr (TYPE_MIN_VALUE (TYPE_DOMAIN (type)), hstate); if (TYPE_MAX_VALUE (TYPE_DOMAIN (type)) != error_mark_node) - hstate.add_int (iterative_hash_expr (TYPE_MAX_VALUE ( - TYPE_DOMAIN (type)), 0)); + iterative_hstate_expr (TYPE_MAX_VALUE (TYPE_DOMAIN (type)), hstate); } /* Recurse for aggregates with a single element type. */ |