diff options
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r-- | gcc/tree-ssa-structalias.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 78693a3..f1172e7 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -3429,7 +3429,7 @@ get_constraint_for_1 (tree t, vec<ce_s> *results, bool address_p, && curr) { unsigned HOST_WIDE_INT size; - if (host_integerp (TYPE_SIZE (TREE_TYPE (t)), 1)) + if (tree_fits_uhwi_p (TYPE_SIZE (TREE_TYPE (t)))) size = TREE_INT_CST_LOW (TYPE_SIZE (TREE_TYPE (t))); else size = -1; @@ -5348,7 +5348,7 @@ push_fields_onto_fieldstack (tree type, vec<fieldoff_s> *fieldstack, } if (!DECL_SIZE (field) - || !host_integerp (DECL_SIZE (field), 1)) + || !tree_fits_uhwi_p (DECL_SIZE (field))) has_unknown_size = true; /* If adjacent fields do not contain pointers merge them. */ @@ -5624,7 +5624,7 @@ create_variable_info_for_1 (tree decl, const char *name) unsigned int i; if (!declsize - || !host_integerp (declsize, 1)) + || !tree_fits_uhwi_p (declsize)) { vi = new_var_info (decl, name); vi->offset = 0; |