diff options
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r-- | gcc/gimple.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c index 64f7b1a..f507419 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -3083,8 +3083,6 @@ iterative_hash_canonical_type (tree type, hashval_t val) if (INTEGRAL_TYPE_P (type) || SCALAR_FLOAT_TYPE_P (type) || FIXED_POINT_TYPE_P (type) - || TREE_CODE (type) == VECTOR_TYPE - || TREE_CODE (type) == COMPLEX_TYPE || TREE_CODE (type) == OFFSET_TYPE || POINTER_TYPE_P (type)) { @@ -3092,6 +3090,15 @@ iterative_hash_canonical_type (tree type, hashval_t val) v = iterative_hash_hashval_t (TYPE_UNSIGNED (type), v); } + if (VECTOR_TYPE_P (type)) + { + v = iterative_hash_hashval_t (TYPE_VECTOR_SUBPARTS (type), v); + v = iterative_hash_hashval_t (TYPE_UNSIGNED (type), v); + } + + if (TREE_CODE (type) == COMPLEX_TYPE) + v = iterative_hash_hashval_t (TYPE_UNSIGNED (type), v); + /* For pointer and reference types, fold in information about the type pointed to but do not recurse to the pointed-to type. */ if (POINTER_TYPE_P (type)) |