This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: JNI in GCJ 3.2 for Win32


>>>>> "Ranjit" == Ranjit Mathew <rmathew@hotmail.com> writes:

Ranjit> In any case, here's my attempted changes for the native
Ranjit> stubs part (GCJ 3.2) so far:

This looks pretty close.  There are some formatting bugs (gcc is even
more strict about formatting than libgcj).

Ranjit>     t = tree_cons (NULL_TREE, object_ptr_type_node,
Ranjit>   		 tree_cons (NULL_TREE, ptr_type_node,
Ranjit> -			    tree_cons (NULL_TREE, ptr_type_node, endlink)));
Ranjit> +			    tree_cons (NULL_TREE, ptr_type_node,
Ranjit> +			               tree_cons (NULL_TREE,

I think the new argument should be int_type_node.

Ranjit> +  unsigned short args_size = 0;

unsigned short?

Ranjit> +#if defined (__MINGW32__) || defined (__CYGWIN__)
Ranjit> +  /* JNI methods on Win32 are invoked using the stdcall convention */
Ranjit> +  tem = build_type_attribute_variant (tem, get_identifier ("stdcall"));
Ranjit> +#endif

This will need to be made dependent on the target, not the host.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]