@@ -707,7 +707,9 @@ hash_tree (struct streamer_tree_cache_d
if (code != TREE_BINFO)
v = iterative_hash_host_wide_int (TREE_PRIVATE (t), v);
if (TYPE_P (t))
- v = iterative_hash_host_wide_int (TYPE_SATURATING (t)
+ v = iterative_hash_host_wide_int ((AGGREGATE_TYPE_P (t)
+ ? TYPE_REVERSE_STORAGE_ORDER (t)
+ : TYPE_SATURATING (t))
| (TYPE_ADDR_SPACE (t) << 1), v);
else if (code == SSA_NAME)
v = iterative_hash_host_wide_int (SSA_NAME_IS_DEFAULT_DEF (t), v);
@@ -1799,7 +1799,10 @@ compare_tree_sccs_1 (tree t1, tree t2, t
compare_values (TREE_DEPRECATED);
if (TYPE_P (t1))
{
- compare_values (TYPE_SATURATING);
+ if (AGGREGATE_TYPE_P (t1))
+ compare_values (TYPE_REVERSE_STORAGE_ORDER);
+ else
+ compare_values (TYPE_SATURATING);
compare_values (TYPE_ADDR_SPACE);
}
else if (code == SSA_NAME)