From 77c10b31eca1e6cd5d35a1b34f3d9dda4dc87eac Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 1 Apr 2005 17:18:39 +0000 Subject: [PATCH] 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 --- gcc/java/ChangeLog | 7 +++++++ gcc/java/decl.c | 23 ++++++++++++++--------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 3b11a3e7c9b..773a5fce30c 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,10 @@ +2005-04-01 Tom Tromey + + * 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. + 2005-03-31 Jan Hubicka * Make-lang.in (class.o, decl.o): Depend on cgraph.h. diff --git a/gcc/java/decl.c b/gcc/java/decl.c index d462f269640..197c391e27c 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), -- 2.30.2