This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libffi test
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: Andreas Tobler <toa at pop dot agri dot ch>, gcc at gcc dot gnu dot org
- Date: Fri, 08 Feb 2002 11:41:05 +1300
- Subject: Re: libffi test
- References: <3C62F80E.876032C8@pop.agri.ch> <3C62FAC8.3030107@waitaki.otago.ac.nz> <3C62FC5D.C7A8CA27@pop.agri.ch>
Andreas Tobler wrote:
>With a binary and with sun java I get this (as expected):
>
>[titanium:~] andreast% ./my_sqrt
>sqrt_int: 0
>sqrt_double: NaN
>sqrt_long: 0
>
>Doing it with gij I get the following:
>
>[titanium:~] andreast% gij my_sqrt
>sqrt_int: -2147483648
>sqrt_double: NaN
>sqrt_long: -9223372034707292160
>
>Is this obviously a problem in the libffi ? Or somewhere else?
>
>One strange thing I see is, the integer is the biggest negativ one
>defined. The long on the otherside is not the biggest negativ one. (-9223372036854775808)
>---
>So is this to worry about?
>
Oh, I forgot about this. This is (I think) an endian bug in libjava
and/or gcj -C, and occurs on Linux PPC as well. I'm not sure exactly
where the problem is here but I'm pretty sure it isn't libffi.
regards
Bryce.