This is the mail archive of the
libffi-discuss@sources.redhat.com
mailing list for the libffi project.
Re: libffi Darwin support
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: John Hornkvist <john at toastedmarshmallow dot com>, libffi-discuss at sources dot redhat dot com
- Date: Wed, 28 Nov 2001 14:19:17 +1300
- Subject: Re: libffi Darwin support
- References: <200111272252.RAA24240@makai.watson.ibm.com>
David Edelsohn wrote:
> As was mentioned in the posting on libffi-discuss last January,
>this is the same ABI as AIX (except for the lack of 64-bit support). I am
>disappointed that it was added with the name Darwin all over the place,
>
Do you have any suggestions for a more generic name for this ABI?
Calling it ffi_aix probibly isn't much better ;-)
>Also, the ABI description of long double is incorrect. 128-bit
>long double is returned in registers fp1 and fp2, not as a structure with
>a hidden parameter.
>
This is what the docs say, but is it what Darwin GCC really implements?
The long double test in ffitest.c works for me on darwin with the
existing code.
>I am not sure if the use of fp2 needs to be marked somehow.
>
I think the assembly code would need to also save fp2 into the
caller-provided return value area at r30 in the long double case?
regards
Bryce.