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/dwarf2out.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/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index bcfadda..73b44ad 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -10261,7 +10261,7 @@ simple_type_size_in_bits (const_tree type) return BITS_PER_WORD; else if (TYPE_SIZE (type) == NULL_TREE) return 0; - else if (host_integerp (TYPE_SIZE (type), 1)) + else if (tree_fits_uhwi_p (TYPE_SIZE (type))) return tree_low_cst (TYPE_SIZE (type), 1); else return TYPE_ALIGN (type); @@ -13540,7 +13540,7 @@ dw_sra_loc_expr (tree decl, rtx loc) enum var_init_status initialized; if (DECL_SIZE (decl) == NULL - || !host_integerp (DECL_SIZE (decl), 1)) + || !tree_fits_uhwi_p (DECL_SIZE (decl))) return NULL; decl_size = tree_low_cst (DECL_SIZE (decl), 1); @@ -16395,7 +16395,7 @@ add_bit_offset_attribute (dw_die_ref die, tree decl) encounter such things, just return without generating any attribute whatsoever. Likewise for variable or too large size. */ if (! tree_fits_shwi_p (bit_position (decl)) - || ! host_integerp (DECL_SIZE (decl), 1)) + || ! tree_fits_uhwi_p (DECL_SIZE (decl))) return; bitpos_int = int_bit_position (decl); @@ -16435,7 +16435,7 @@ add_bit_size_attribute (dw_die_ref die, tree decl) gcc_assert (TREE_CODE (decl) == FIELD_DECL && DECL_BIT_FIELD_TYPE (decl)); - if (host_integerp (DECL_SIZE (decl), 1)) + if (tree_fits_uhwi_p (DECL_SIZE (decl))) add_AT_unsigned (die, DW_AT_bit_size, tree_low_cst (DECL_SIZE (decl), 1)); } @@ -17072,7 +17072,7 @@ descr_info_loc (tree val, tree base_decl) return loc; case POINTER_PLUS_EXPR: case PLUS_EXPR: - if (host_integerp (TREE_OPERAND (val, 1), 1) + if (tree_fits_uhwi_p (TREE_OPERAND (val, 1)) && (unsigned HOST_WIDE_INT) tree_low_cst (TREE_OPERAND (val, 1), 1) < 16384) { |