* src/prep_cif.c (ffi_prep_cif): Allow for X86_WIN32
commite5fbea4091e302e6d696c978eea3abc231b17adf
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Feb 2012 21:35:19 +0000 (8 21:35 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Feb 2012 21:35:19 +0000 (8 21:35 +0000)
tree04eccef5248b2631ad4b9a46a6f2bc4f49b8cd64
parentf19ce63be8c51cb72c08d1b83bb23fac0c82cb82
    * src/prep_cif.c (ffi_prep_cif): Allow for X86_WIN32
        also FFI_THISCALL.
        * src/x86/ffi.c (ffi_closure_THISCALL): Add prototype.
        (FFI_INIT_TRAMPOLINE_THISCALL): New trampoline code.
        (ffi_prep_closure_loc): Add FFI_THISCALL support.
        * src/x86/ffitarget.h (FFI_TRAMPOLINE_SIZE): Adjust size.
        * src/x86/win32.S (ffi_closure_THISCALL): New closure code
        for thiscall-calling convention.
        * testsuite/libffi.call/closure_thiscall.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184021 138bc75d-0d04-0410-961f-82ee72b054a4
libffi/ChangeLog
libffi/src/prep_cif.c
libffi/src/x86/ffi.c
libffi/src/x86/ffitarget.h
libffi/src/x86/win32.S
libffi/testsuite/libffi.call/closure_thiscall.c [new file with mode: 0644]