summaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-18 14:51:10 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-18 14:51:10 +0000
commit35ec552a6349f5b8ef21996454de61a0649ae59a (patch)
treeafc65126a85ed1aadac8e274f889137dc1baed2a /gcc/java
parent031a4cb6d2dc2e69d3723413323d228fac4bc0d2 (diff)
downloadgcc-35ec552a6349f5b8ef21996454de61a0649ae59a.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204955 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/class.c2
-rw-r--r--gcc/java/expr.c4
3 files changed, 8 insertions, 3 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index a474ccc0d7f..01d50f2c111 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * class.c, expr.c: Replace host_integerp (..., 0) with
+ tree_fits_shwi_p throughout.
+
2013-11-14 Andrew MacLeod <amacleod@redhat.com>
* java-gimplify.c: Include only gimplify.h and gimple.h as needed.
diff --git a/gcc/java/class.c b/gcc/java/class.c
index cb6789643d3..5eb245e5376 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -1592,7 +1592,7 @@ get_dispatch_vector (tree type)
{
tree method_index = get_method_index (method);
if (method_index != NULL_TREE
- && host_integerp (method_index, 0))
+ && tree_fits_shwi_p (method_index))
TREE_VEC_ELT (vtable, tree_low_cst (method_index, 0)) = method;
}
}
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index a434913d475..0720065717c 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -1049,7 +1049,7 @@ build_newarray (int atype_value, tree length)
tree prim_type = decode_newarray_type (atype_value);
tree type
= build_java_array_type (prim_type,
- host_integerp (length, 0) == INTEGER_CST
+ tree_fits_shwi_p (length) == INTEGER_CST
? tree_low_cst (length, 0) : -1);
/* Pass a reference to the primitive type class and save the runtime
@@ -1069,7 +1069,7 @@ build_anewarray (tree class_type, tree length)
{
tree type
= build_java_array_type (class_type,
- host_integerp (length, 0)
+ tree_fits_shwi_p (length)
? tree_low_cst (length, 0) : -1);
return build_call_nary (promote_type (type),