diff options
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 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. */ |