summaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/boehm.c2
-rw-r--r--gcc/java/expr.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/boehm.c b/gcc/java/boehm.c
index 14d228a7e2f..d8ed23964b7 100644
--- a/gcc/java/boehm.c
+++ b/gcc/java/boehm.c
@@ -233,5 +233,5 @@ uses_jv_markobj_p (tree dtable)
point in asserting unless we hit the bad case. */
gcc_assert (!flag_reduced_reflection || TARGET_VTABLE_USES_DESCRIPTORS == 0);
v = (*CONSTRUCTOR_ELTS (dtable))[3].value;
- return (PROCEDURE_OBJECT_DESCRIPTOR == tree_to_hwi (v));
+ return (PROCEDURE_OBJECT_DESCRIPTOR == TREE_INT_CST_LOW (v));
}
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index 2e7ee9dde3f..983822dadcb 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -2673,7 +2673,7 @@ build_jni_stub (tree method)
special way, we would do that here. */
for (tem = method_args; tem != NULL_TREE; tem = DECL_CHAIN (tem))
{
- int arg_bits = tree_to_hwi (TYPE_SIZE (TREE_TYPE (tem)));
+ int arg_bits = TREE_INT_CST_LOW (TYPE_SIZE (TREE_TYPE (tem)));
#ifdef PARM_BOUNDARY
arg_bits = (((arg_bits + PARM_BOUNDARY - 1) / PARM_BOUNDARY)
* PARM_BOUNDARY);