+2015-10-27 Tom de Vries <tom@codesourcery.com>
+
+ * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
+ field_type.
+
2015-10-27 Bin Cheng <bin.cheng@arm.com>
* loop-invariant.c (struct def): New field can_prop_to_addr_uses.
{
bool push = false;
HOST_WIDE_INT foff = bitpos_of_field (field);
+ tree field_type = TREE_TYPE (field);
if (!var_can_have_subvars (field)
- || TREE_CODE (TREE_TYPE (field)) == QUAL_UNION_TYPE
- || TREE_CODE (TREE_TYPE (field)) == UNION_TYPE)
+ || TREE_CODE (field_type) == QUAL_UNION_TYPE
+ || TREE_CODE (field_type) == UNION_TYPE)
push = true;
else if (!push_fields_onto_fieldstack
- (TREE_TYPE (field), fieldstack, offset + foff)
+ (field_type, fieldstack, offset + foff)
&& (DECL_SIZE (field)
&& !integer_zerop (DECL_SIZE (field))))
/* Empty structures may have actual size, like in C++. So
e.may_have_pointers = true;
e.only_restrict_pointers
= (!has_unknown_size
- && POINTER_TYPE_P (TREE_TYPE (field))
- && TYPE_RESTRICT (TREE_TYPE (field)));
+ && POINTER_TYPE_P (field_type)
+ && TYPE_RESTRICT (field_type));
fieldstack->safe_push (e);
}
}