diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2013-11-18 14:51:10 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2013-11-18 14:51:10 +0000 |
commit | 9541ffee8c7b67cc5ab3bc113dbfd84d0a81feab (patch) | |
tree | afc65126a85ed1aadac8e274f889137dc1baed2a /gcc/cp | |
parent | b04268a57f6e67376cf804e6e5866cf8cbfef968 (diff) | |
download | gcc-9541ffee8c7b67cc5ab3bc113dbfd84d0a81feab.zip gcc-9541ffee8c7b67cc5ab3bc113dbfd84d0a81feab.tar.gz gcc-9541ffee8c7b67cc5ab3bc113dbfd84d0a81feab.tar.bz2 |
cuintp.c: Replace host_integerp (..., 0) with tree_fits_shwi_p throughout.
gcc/ada/
* gcc-interface/cuintp.c: Replace host_integerp (..., 0) with
tree_fits_shwi_p throughout.
gcc/c-family/
* c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
host_integerp (..., 0) with tree_fits_shwi_p throughout.
gcc/c/
* c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
throughout.
gcc/cp/
* error.c, init.c, parser.c, semantics.c: Replace
host_integerp (..., 0) with tree_fits_shwi_p throughout.
gcc/go/
* gofrontend/expressions.cc: Replace host_integerp (..., 0) with
tree_fits_shwi_p throughout.
gcc/java/
* class.c, expr.c: Replace host_integerp (..., 0) with
tree_fits_shwi_p throughout.
gcc/
* builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
throughout.
From-SVN: r204955
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/error.c | 4 | ||||
-rw-r--r-- | gcc/cp/init.c | 2 | ||||
-rw-r--r-- | gcc/cp/parser.c | 2 | ||||
-rw-r--r-- | gcc/cp/semantics.c | 4 |
5 files changed, 11 insertions, 6 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 2729ec3..a131d4b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> + + * error.c, init.c, parser.c, semantics.c: Replace + host_integerp (..., 0) with tree_fits_shwi_p throughout. + 2013-11-17 Paolo Carlini <paolo.carlini@oracle.com> PR c++/59123 diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 5f997c3..7f86077 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -851,7 +851,7 @@ dump_type_suffix (cxx_pretty_printer *pp, tree t, int flags) tree max = TYPE_MAX_VALUE (dtype); if (integer_all_onesp (max)) pp_character (pp, '0'); - else if (host_integerp (max, 0)) + else if (tree_fits_shwi_p (max)) pp_wide_integer (pp, tree_low_cst (max, 0) + 1); else { @@ -2285,7 +2285,7 @@ dump_expr (cxx_pretty_printer *pp, tree t, int flags) pp_cxx_right_paren (pp); break; } - else if (host_integerp (idx, 0)) + else if (tree_fits_shwi_p (idx)) { tree virtuals; unsigned HOST_WIDE_INT n; diff --git a/gcc/cp/init.c b/gcc/cp/init.c index fde2314..c37423c 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -3662,7 +3662,7 @@ build_vec_init (tree base, tree maxindex, tree init, if (from_array || ((type_build_ctor_call (type) || init || explicit_value_init_p) - && ! (host_integerp (maxindex, 0) + && ! (tree_fits_shwi_p (maxindex) && (num_initialized_elts == tree_low_cst (maxindex, 0) + 1)))) { diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 27f1054..72fbd02 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -26962,7 +26962,7 @@ cp_parser_omp_clause_collapse (cp_parser *parser, tree list, location_t location return list; num = fold_non_dependent_expr (num); if (!INTEGRAL_TYPE_P (TREE_TYPE (num)) - || !host_integerp (num, 0) + || !tree_fits_shwi_p (num) || (n = tree_low_cst (num, 0)) <= 0 || (int) n != n) { diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index f5506d0..781d373 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -8739,8 +8739,8 @@ cxx_eval_bit_field_ref (const constexpr_call *call, tree t, return value; if (TREE_CODE (TREE_TYPE (field)) == INTEGER_TYPE && TREE_CODE (value) == INTEGER_CST - && host_integerp (bitpos, 0) - && host_integerp (DECL_SIZE (field), 0)) + && tree_fits_shwi_p (bitpos) + && tree_fits_shwi_p (DECL_SIZE (field))) { HOST_WIDE_INT bit = tree_low_cst (bitpos, 0); HOST_WIDE_INT sz = tree_low_cst (DECL_SIZE (field), 0); |