JNI in GCJ 3.2 for Win32

Tom Tromey tromey@redhat.com
Mon Nov 11 14:11:00 GMT 2002


>>>>> "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



More information about the Java mailing list