This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Crash invoke()'ing Method with "double" as return type
- From: Tom Tromey <tromey at redhat dot com>
- To: Martin Egholm Nielsen <martin at egholm-nielsen dot dk>
- Cc: java at gcc dot gnu dot org
- Date: 26 Jun 2006 08:50:17 -0600
- Subject: Re: Crash invoke()'ing Method with "double" as return type
- References: <e7or2e$3vg$1@sea.gmane.org>
- Reply-to: tromey at redhat dot com
>>>>> "Martin" == Martin Egholm Nielsen <martin@egholm-nielsen.dk> writes:
Martin> Just ran into a strange problem on my target: When calling invoke() on
Martin> a java.lang.reflect.Method returning a double, my target crashes with
Martin> an "Illegal instruction" attempting to return:
Martin> And it's not working on double in general that sucks - output line 3
Martin> is the output after invoking the same method in a non-reflective
Martin> manner.
This I don't recall.
Martin> This is on my ancient (hacked) GCJ 3.4.x, running on my PPC405EP
Martin> target... I know it's old - but does it ring a bell?
The only problem I recall is that returning a double via libffi on
PPC64 could cause a buffer overflow. This doesn't sound like your
problem; in fact your problem sounds like something more generic.
Does the equivalent C program work on your target?
Tom