Crash invoke()'ing Method with "double" as return type

Andreas Tobler toa@pop.agri.ch
Wed Jun 28 19:59:00 GMT 2006


Martin Egholm Nielsen wrote:
>>>> Tom> If that doesn't work then you've found a bug.  You'd
>>>> probably need a Tom> MIPS expert to look at the assembly in this
>>>> case. Andreas points out on irc that a PPC expert may be better
>>>> suited :)
>>>
>>> (-: I just find it hard to believe that this is an existing bug -
>>> this would certainly have been found ages ago, or what... It seems
>>> to be so fundamental - but what do I know...
> 
>> You said you use a 3.4.x tree, right? Is the patch from PR23404
>> included in your tree? Does the test case from this PR work for you?
> Yep... But I replaced the entire libffi directory from svn trunk.
> I do indeed have the patch in ffi.c given in
> http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libffi/src/powerpc/ffi.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.7.10.1&r2=1.7.10.2 
> 
> 
> I by verifying that added printf'es to ffi.c does indeed end in the
> console, shouldn't that indicate that it's being compiled and linked in
> correctly?!
> (I'm lazy, I didn't remake the entire gcc - just libffi and libjava)

Should be enough I'd say.

> Haven't tried the test case though, but I guess that would be the 
> natural next-step...

Hm, I ran your original test case on ppc-linux trunk and darwin-ppc 
trunk. Both seem to be ok.

Maybe a PPC405EP issue?

Here I'm out of knowledge.

Andreas




More information about the Java mailing list