This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: fix some types
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 08 Mar 2005 18:52:11 -0700
- Subject: [gcjx] Patch: FYI: fix some types
- Reply-to: tromey at redhat dot com
I'm checking this in on the gcjx branch.
This fixes the types of a couple of declarations.
ISTR that these are also wrong in gcj... I'll have to look it up
again later.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* decl.cc (initialize_builtin_functions): Fixed type of
_Jv_MonitorEnter and _Jv_MonitorExit.
(initialize_builtin_functions): Fixed type of first
argument to _Jv_NewPrimArray.
Index: decl.cc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/Attic/decl.cc,v
retrieving revision 1.1.2.13
diff -u -r1.1.2.13 decl.cc
--- decl.cc 8 Mar 2005 21:32:14 -0000 1.1.2.13
+++ decl.cc 9 Mar 2005 01:52:53 -0000
@@ -566,7 +566,7 @@
builtin_Jv_Throw
= build_address_of (builtin_Jv_Throw);
- t = build_function_type (type_jint, void_list_node);
+ t = build_function_type (void_type_node, void_list_node);
builtin_Jv_MonitorEnter
= gcjx::builtin_function ("_Jv_MonitorEnter", t, 0, NOT_BUILT_IN,
NULL, NULL_TREE);
@@ -578,11 +578,11 @@
builtin_Jv_MonitorExit
= build_address_of (builtin_Jv_MonitorExit);
- t = tree_cons (NULL_TREE, type_jint,
+ t = tree_cons (NULL_TREE, type_class_ptr,
tree_cons (NULL_TREE, type_jint, void_list_node));
builtin_Jv_NewPrimArray
= gcjx::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 (builtin_Jv_NewPrimArray) = 1;
builtin_Jv_NewPrimArray