aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/decl.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2005-04-01 17:18:39 +0000
committerTom Tromey <tromey@gcc.gnu.org>2005-04-01 17:18:39 +0000
commit77c10b31eca1e6cd5d35a1b34f3d9dda4dc87eac (patch)
treee21e539c76fed876077f7ae48c8ddb2a3166ce41 /gcc/java/decl.c
parent054e88a868fe3c38df78246a8c47b050b27c757d (diff)
downloadgcc-77c10b31eca1e6cd5d35a1b34f3d9dda4dc87eac.zip
gcc-77c10b31eca1e6cd5d35a1b34f3d9dda4dc87eac.tar.gz
gcc-77c10b31eca1e6cd5d35a1b34f3d9dda4dc87eac.tar.bz2
decl.c (java_init_decl_processing): Fix types of _Jv_MonitorEnter...
* decl.c (java_init_decl_processing): Fix types of _Jv_MonitorEnter, _Jv_MonitorExit, _Jv_AllocObject, _Jv_AllocObjectNoFinalizer, _Jv_Throw, _Jv_NewPrimArray, _Jv_JNI_PopSystemFrame, _Jv_divI, _Jv_remI, _Jv_divJ, _Jv_remJ. From-SVN: r97409
Diffstat (limited to 'gcc/java/decl.c')
-rw-r--r--gcc/java/decl.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c
index d462f26..197c391 100644
--- a/gcc/java/decl.c
+++ b/gcc/java/decl.c
@@ -999,8 +999,7 @@ java_init_decl_processing (void)
endlink = end_params_node = tree_cons (NULL_TREE, void_type_node, NULL_TREE);
- t = tree_cons (NULL_TREE, class_ptr_type,
- tree_cons (NULL_TREE, int_type_node, endlink));
+ t = tree_cons (NULL_TREE, class_ptr_type, endlink);
alloc_object_node = builtin_function ("_Jv_AllocObject",
build_function_type (ptr_type_node, t),
0, NOT_BUILT_IN, NULL, NULL_TREE);
@@ -1018,31 +1017,33 @@ java_init_decl_processing (void)
0, NOT_BUILT_IN, NULL, NULL_TREE);
throw_node = builtin_function ("_Jv_Throw",
- build_function_type (ptr_type_node, t),
+ build_function_type (void_type_node, t),
0, NOT_BUILT_IN, NULL, NULL_TREE);
/* Mark throw_nodes as `noreturn' functions with side effects. */
TREE_THIS_VOLATILE (throw_node) = 1;
TREE_SIDE_EFFECTS (throw_node) = 1;
- t = build_function_type (int_type_node, endlink);
+ t = build_function_type (void_type_node, tree_cons (NULL_TREE, ptr_type_node,
+ endlink));
soft_monitorenter_node
= builtin_function ("_Jv_MonitorEnter", t, 0, NOT_BUILT_IN,
NULL, NULL_TREE);
soft_monitorexit_node
= builtin_function ("_Jv_MonitorExit", t, 0, NOT_BUILT_IN,
NULL, NULL_TREE);
-
- t = tree_cons (NULL_TREE, int_type_node,
+
+ t = tree_cons (NULL_TREE, ptr_type_node,
tree_cons (NULL_TREE, int_type_node, endlink));
soft_newarray_node
= builtin_function ("_Jv_NewPrimArray",
- build_function_type(ptr_type_node, t),
+ build_function_type (ptr_type_node, t),
0, NOT_BUILT_IN, NULL, NULL_TREE);
DECL_IS_MALLOC (soft_newarray_node) = 1;
t = tree_cons (NULL_TREE, int_type_node,
tree_cons (NULL_TREE, class_ptr_type,
- tree_cons (NULL_TREE, object_ptr_type_node, endlink)));
+ tree_cons (NULL_TREE, object_ptr_type_node,
+ endlink)));
soft_anewarray_node
= builtin_function ("_Jv_NewObjectArray",
build_function_type (ptr_type_node, t),
@@ -1128,9 +1129,11 @@ java_init_decl_processing (void)
0, NOT_BUILT_IN, NULL, NULL_TREE);
soft_jnipopsystemframe_node
= builtin_function ("_Jv_JNI_PopSystemFrame",
- build_function_type (ptr_type_node, t),
+ build_function_type (void_type_node, t),
0, NOT_BUILT_IN, NULL, NULL_TREE);
+ t = tree_cons (NULL_TREE, int_type_node,
+ tree_cons (NULL_TREE, int_type_node, endlink));
soft_idiv_node
= builtin_function ("_Jv_divI",
build_function_type (int_type_node, t),
@@ -1141,6 +1144,8 @@ java_init_decl_processing (void)
build_function_type (int_type_node, t),
0, NOT_BUILT_IN, NULL, NULL_TREE);
+ t = tree_cons (NULL_TREE, long_type_node,
+ tree_cons (NULL_TREE, long_type_node, endlink));
soft_ldiv_node
= builtin_function ("_Jv_divJ",
build_function_type (long_type_node, t),