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
This commit is contained in:
parent
054e88a868
commit
77c10b31ec
@ -1,3 +1,10 @@
|
|||||||
|
2005-04-01 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* 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 <jh@suse.cz>
|
2005-03-31 Jan Hubicka <jh@suse.cz>
|
||||||
|
|
||||||
* Make-lang.in (class.o, decl.o): Depend on cgraph.h.
|
* Make-lang.in (class.o, decl.o): Depend on cgraph.h.
|
||||||
|
@ -999,8 +999,7 @@ java_init_decl_processing (void)
|
|||||||
|
|
||||||
endlink = end_params_node = tree_cons (NULL_TREE, void_type_node, NULL_TREE);
|
endlink = end_params_node = tree_cons (NULL_TREE, void_type_node, NULL_TREE);
|
||||||
|
|
||||||
t = tree_cons (NULL_TREE, class_ptr_type,
|
t = tree_cons (NULL_TREE, class_ptr_type, endlink);
|
||||||
tree_cons (NULL_TREE, int_type_node, endlink));
|
|
||||||
alloc_object_node = builtin_function ("_Jv_AllocObject",
|
alloc_object_node = builtin_function ("_Jv_AllocObject",
|
||||||
build_function_type (ptr_type_node, t),
|
build_function_type (ptr_type_node, t),
|
||||||
0, NOT_BUILT_IN, NULL, NULL_TREE);
|
0, NOT_BUILT_IN, NULL, NULL_TREE);
|
||||||
@ -1018,31 +1017,33 @@ java_init_decl_processing (void)
|
|||||||
0, NOT_BUILT_IN, NULL, NULL_TREE);
|
0, NOT_BUILT_IN, NULL, NULL_TREE);
|
||||||
|
|
||||||
throw_node = builtin_function ("_Jv_Throw",
|
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);
|
0, NOT_BUILT_IN, NULL, NULL_TREE);
|
||||||
/* Mark throw_nodes as `noreturn' functions with side effects. */
|
/* Mark throw_nodes as `noreturn' functions with side effects. */
|
||||||
TREE_THIS_VOLATILE (throw_node) = 1;
|
TREE_THIS_VOLATILE (throw_node) = 1;
|
||||||
TREE_SIDE_EFFECTS (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
|
soft_monitorenter_node
|
||||||
= builtin_function ("_Jv_MonitorEnter", t, 0, NOT_BUILT_IN,
|
= builtin_function ("_Jv_MonitorEnter", t, 0, NOT_BUILT_IN,
|
||||||
NULL, NULL_TREE);
|
NULL, NULL_TREE);
|
||||||
soft_monitorexit_node
|
soft_monitorexit_node
|
||||||
= builtin_function ("_Jv_MonitorExit", t, 0, NOT_BUILT_IN,
|
= builtin_function ("_Jv_MonitorExit", t, 0, NOT_BUILT_IN,
|
||||||
NULL, NULL_TREE);
|
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));
|
tree_cons (NULL_TREE, int_type_node, endlink));
|
||||||
soft_newarray_node
|
soft_newarray_node
|
||||||
= builtin_function ("_Jv_NewPrimArray",
|
= 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);
|
0, NOT_BUILT_IN, NULL, NULL_TREE);
|
||||||
DECL_IS_MALLOC (soft_newarray_node) = 1;
|
DECL_IS_MALLOC (soft_newarray_node) = 1;
|
||||||
|
|
||||||
t = tree_cons (NULL_TREE, int_type_node,
|
t = tree_cons (NULL_TREE, int_type_node,
|
||||||
tree_cons (NULL_TREE, class_ptr_type,
|
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
|
soft_anewarray_node
|
||||||
= builtin_function ("_Jv_NewObjectArray",
|
= builtin_function ("_Jv_NewObjectArray",
|
||||||
build_function_type (ptr_type_node, t),
|
build_function_type (ptr_type_node, t),
|
||||||
@ -1128,9 +1129,11 @@ java_init_decl_processing (void)
|
|||||||
0, NOT_BUILT_IN, NULL, NULL_TREE);
|
0, NOT_BUILT_IN, NULL, NULL_TREE);
|
||||||
soft_jnipopsystemframe_node
|
soft_jnipopsystemframe_node
|
||||||
= builtin_function ("_Jv_JNI_PopSystemFrame",
|
= 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);
|
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
|
soft_idiv_node
|
||||||
= builtin_function ("_Jv_divI",
|
= builtin_function ("_Jv_divI",
|
||||||
build_function_type (int_type_node, t),
|
build_function_type (int_type_node, t),
|
||||||
@ -1141,6 +1144,8 @@ java_init_decl_processing (void)
|
|||||||
build_function_type (int_type_node, t),
|
build_function_type (int_type_node, t),
|
||||||
0, NOT_BUILT_IN, NULL, NULL_TREE);
|
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
|
soft_ldiv_node
|
||||||
= builtin_function ("_Jv_divJ",
|
= builtin_function ("_Jv_divJ",
|
||||||
build_function_type (long_type_node, t),
|
build_function_type (long_type_node, t),
|
||||||
|
Loading…
Reference in New Issue
Block a user