aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
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 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. */