This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Another endianess problem on Solaris


>>>>> "Bryce" == Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:

Bryce> Alphas are little-endian. But LinuxPPC is big-endian and the problems 
Bryce> occur there also. Hopefully we will be able to fix it in time for 3.1, 
Bryce> and if we don't I agree we should document the issue.

I think this is a very important bug for 3.1.  I think if we don't
come up with the cleanest fix, we should at least check in the
available fix on the branch.

I looked at writing the proposed fix tonight.  It's not clear to me
how it should work.  Do we want a new function like
ffi_promoted_type()?  The idea being that we would pass in a type,
like FFI_TYPE_UINT8, and then ffi would return the promoted type.  Do
we have a table of the rules for all the supported platforms?  I
suppose the default implementation should just assume that integral
types narrower than the platform's `int' should promote to `int'.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]