This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: PATCH: libffi vs. SPARC (again)
Jeff wrote:
> + // Handle return type. Constructor return values are faked, and
> + // subword return types must be narrowed to the proper jvalue element.
> if (is_constructor)
> result->l = obj;
> + else if (return_type == JvPrimClass (byte))
> + result->b = (jbyte)result_word.i;
> + else if (return_type == JvPrimClass (short))
> + result->s = (jshort)result_word.i;
> + else if (return_type == JvPrimClass (boolean))
> + result->z = (jboolean)result_word.i;
> + else if (return_type == JvPrimClass (char))
> + result->c = (jchar)result_word.i;
> + else
> + memcpy (result, &result_word, sizeof (jvalue));
I'm surprised that this is necessary. libffi should be changed if this is the
case.
Please remind me what the problem was again.
Thanks!
AG