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: FW: libffi on HP-UX


> Anthony Green <green at redhat dot com>
>> On Tue, 2005-02-15 at 14:37 -0800, Boehm, Hans wrote:
>> My impression is that most of the client code presumes that char,
>> short, and int are returned as int, and everything else is returned
>> using the actual data size.  Effectively, the C "integral promotions"
>> are applied to the return type.  Is that the intended convention?
>
> Yes, that's right, although in hindsight it was probably a mistake.
>
>> If that's unclear, can we make it the intended convention?
>
> If that's what will work best for HP-UX and doesn't require changes
> for other ports then I'm ok with that.

- or wonder if it may be best (with hindsight) to actually return the
  data in it's specified precision, as it's not clear to me that the
  a compiler need implement (int) as being any particular size; however
  expecting an explicitly sized type to be returned as such is not
  ambiguous (in either big or little-endian form).




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