summaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-25 13:39:36 +0000
committerak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-25 13:39:36 +0000
commit045e2f278f9364a1a352b2e96d1dc48e23c5f8f2 (patch)
tree6647dfd08c4e561eeddc5c97f3e108674d6eac43 /gcc/lto
parente7f95d73efa84f5121ee279b48c6425b29a61268 (diff)
downloadgcc-045e2f278f9364a1a352b2e96d1dc48e23c5f8f2.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213056 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog4
-rw-r--r--gcc/lto/lto.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index 1e9788f77bf..8309ab97d5a 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 c5b3a049268..2de00fbf518 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. */