diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2013-11-18 14:51:26 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2013-11-18 14:51:26 +0000 |
commit | cc269bb6d9f1538870dc94bc3b8cad8f749d1204 (patch) | |
tree | c2393ba420fc6d0d88f8cff690816f0c2d13f09b /gcc/tree-sra.c | |
parent | 9541ffee8c7b67cc5ab3bc113dbfd84d0a81feab (diff) | |
download | gcc-cc269bb6d9f1538870dc94bc3b8cad8f749d1204.zip gcc-cc269bb6d9f1538870dc94bc3b8cad8f749d1204.tar.gz gcc-cc269bb6d9f1538870dc94bc3b8cad8f749d1204.tar.bz2 |
decl.c, [...]: Replace host_integerp (..., 1) with tree_fits_uhwi_p throughout.
gcc/ada/
* gcc-interface/decl.c, gcc-interface/misc.c, gcc-interface/utils.c:
Replace host_integerp (..., 1) with tree_fits_uhwi_p throughout.
gcc/c-family/
* c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
host_integerp (..., 1) with tree_fits_uhwi_p throughout.
gcc/cp/
* decl.c: Replace host_integerp (..., 1) with tree_fits_uhwi_p
throughout.
gcc/
* builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
tree_fits_uhwi_p throughout.
From-SVN: r204956
Diffstat (limited to 'gcc/tree-sra.c')
-rw-r--r-- | gcc/tree-sra.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c index 2ac9ba1..71769eb 100644 --- a/gcc/tree-sra.c +++ b/gcc/tree-sra.c @@ -742,12 +742,12 @@ type_internals_preclude_sra_p (tree type, const char **msg) *msg = "zero structure field size"; return true; } - if (!host_integerp (DECL_FIELD_OFFSET (fld), 1)) + if (!tree_fits_uhwi_p (DECL_FIELD_OFFSET (fld))) { *msg = "structure field offset not fixed"; return true; } - if (!host_integerp (DECL_SIZE (fld), 1)) + if (!tree_fits_uhwi_p (DECL_SIZE (fld))) { *msg = "structure field size not fixed"; return true; @@ -1651,12 +1651,12 @@ build_user_friendly_ref_for_offset (tree *res, tree type, HOST_WIDE_INT offset, continue; tr_pos = bit_position (fld); - if (!tr_pos || !host_integerp (tr_pos, 1)) + if (!tr_pos || !tree_fits_uhwi_p (tr_pos)) continue; pos = TREE_INT_CST_LOW (tr_pos); gcc_assert (TREE_CODE (type) == RECORD_TYPE || pos == 0); tr_size = DECL_SIZE (fld); - if (!tr_size || !host_integerp (tr_size, 1)) + if (!tr_size || !tree_fits_uhwi_p (tr_size)) continue; size = TREE_INT_CST_LOW (tr_size); if (size == 0) @@ -1681,7 +1681,7 @@ build_user_friendly_ref_for_offset (tree *res, tree type, HOST_WIDE_INT offset, case ARRAY_TYPE: tr_size = TYPE_SIZE (TREE_TYPE (type)); - if (!tr_size || !host_integerp (tr_size, 1)) + if (!tr_size || !tree_fits_uhwi_p (tr_size)) return false; el_size = tree_low_cst (tr_size, 1); @@ -1759,7 +1759,7 @@ maybe_add_sra_candidate (tree var) reject (var, "has incomplete type"); return false; } - if (!host_integerp (TYPE_SIZE (type), 1)) + if (!tree_fits_uhwi_p (TYPE_SIZE (type))) { reject (var, "type size not fixed"); return false; @@ -2799,8 +2799,8 @@ sra_modify_expr (tree *expr, gimple_stmt_iterator *gsi, bool write) { HOST_WIDE_INT start_offset, chunk_size; if (bfr - && host_integerp (TREE_OPERAND (bfr, 1), 1) - && host_integerp (TREE_OPERAND (bfr, 2), 1)) + && tree_fits_uhwi_p (TREE_OPERAND (bfr, 1)) + && tree_fits_uhwi_p (TREE_OPERAND (bfr, 2))) { chunk_size = tree_low_cst (TREE_OPERAND (bfr, 1), 1); start_offset = access->offset @@ -3693,7 +3693,7 @@ find_param_candidates (void) continue; if (!COMPLETE_TYPE_P (type) - || !host_integerp (TYPE_SIZE (type), 1) + || !tree_fits_uhwi_p (TYPE_SIZE (type)) || tree_low_cst (TYPE_SIZE (type), 1) == 0 || (AGGREGATE_TYPE_P (type) && type_internals_preclude_sra_p (type, &msg))) |