This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: FW: libffi on HP-UX
- From: Paul Schlie <schlie at comcast dot net>
- To: Anthony Green <green at redhat dot com>
- Cc: "Boehm, Hans" <hans dot boehm at hp dot com>,Steve Ellcey <sje at cup dot hp dot com>,<java at gcc dot gnu dot org>
- Date: Wed, 16 Feb 2005 18:42:13 -0500
- Subject: 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).