[RFA/RFT] libffi reorg (take 2)

David Edelsohn dje@watson.ibm.com
Fri Sep 19 15:14:00 GMT 2003

>>>>> Andreas Tobler writes:

Andreas> Second, the darwin assembler doesn't like this:

Andreas> include/ffitarget.h:81:Invalid mnemonic 'struct'
Andreas> include/ffitarget.h:82:Invalid mnemonic 'void'
Andreas> include/ffitarget.h:83:Invalid mnemonic 'void'
Andreas> include/ffitarget.h:84:Invalid mnemonic 'void'

Andreas> So I added the && !defined LIBFFI_ASM.

Andreas> David, do you agree for AIX?

Andreas> #if (defined(POWERPC_DARWIN) || defined(POWERPC_AIX)) && !defined LIBFFI_ASM
Andreas> struct ffi_aix_trampoline_struct {
Andreas> void * code_pointer;	/* Pointer to ffi_closure_ASM */
Andreas> void * toc;			/* TOC */
Andreas> void * static_chain;	/* Pointer to closure */
Andreas> };

	This looks okay for AIX.

Thanks, David

More information about the Gcc-patches mailing list