[patch] libffi longdouble for darwin
Andreas Tobler
toa@pop.agri.ch
Fri Sep 3 17:12:00 GMT 2004
Hi all,
the longer promised patch comes here. I hope to have it mostly right to
implement longdouble support on darwin (maybe even on AIX).
I'm still not finished with all the test cases but I'd like to see this
patch in 3.5 and so I have to hurry somehow. The test cases needs some
polishing. Testing was a bit difficult since the libc does not support
longdouble and so I had to tweak a bit.
I based my work on the ppc64 ABI (by Alanm, DJE et.al.) And on what's
currently implemented on darwin.
Tested on a G4.
David, if you say AIX behaves the same way as darwin regarding size and
alignment of longdoubles I adjust the file src/types.c. I could not test
so far on AIX.
Comments and corrections welcome.
Andreas
2004-09-01 Andreas Tobler <a.tobler@schweiz.ch>
* src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
(ffi_prep_args): Handle longdouble arguments.
(ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
longdouble.
(ffi_closure_helper_DARWIN): Add closure handling for longdouble.
* src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
values.
* src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
* src/types.c: Defined longdouble size and alignment for darwin.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ffi-ld-darwin1.diff
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040903/8183d04a/attachment.ksh>
More information about the Java-patches
mailing list