OSDN Git Service

* src/libffi/src/x86/ffi.c (ffi_call_win32): Add new
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 29 Jan 2012 13:29:53 +0000 (13:29 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 29 Jan 2012 13:29:53 +0000 (13:29 +0000)
commit3e6bf5fe04413ffdcf981bf74684309cb7cf6800
tree07d8149ae6b2c61efbc0e6687a4213386743e439
parente9602c2c334b3dc14c704c09f2c546ac56c6889c
    * src/libffi/src/x86/ffi.c (ffi_call_win32): Add new
        argument to prototype for specify calling-convention.
        (ffi_call): Add support for stdcall/thiscall convention.
        (ffi_prep_args): Likewise.
        (ffi_raw_call): Likewise.
        * src/x86/ffitarget.h (ffi_abi): Add FFI_THISCALL and
        FFI_FASTCALL.
        * src/x86/win32.S (_ffi_call_win32): Add support for
        fastcall/thiscall calling-convention calls.
        * testsuite/libffi.call/fastthis1_win32.c: New test.
        * testsuite/libffi.call/fastthis2_win32.c: New test.
        * testsuite/libffi.call/fastthis3_win32.c: New test.
        * testsuite/libffi.call/strlen2_win32.c: New test.
        * testsuite/libffi.call/many2_win32.c: New test.
        * testsuite/libffi.call/struct1_win32.c: New test.
        * testsuite/libffi.call/struct2_win32.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183676 138bc75d-0d04-0410-961f-82ee72b054a4
libffi/ChangeLog
libffi/src/x86/ffi.c
libffi/src/x86/ffitarget.h
libffi/src/x86/win32.S
libffi/testsuite/libffi.call/fastthis1_win32.c [new file with mode: 0644]
libffi/testsuite/libffi.call/fastthis2_win32.c [new file with mode: 0644]
libffi/testsuite/libffi.call/fastthis3_win32.c [new file with mode: 0644]
libffi/testsuite/libffi.call/many2_win32.c [new file with mode: 0644]
libffi/testsuite/libffi.call/strlen2_win32.c [new file with mode: 0644]
libffi/testsuite/libffi.call/struct1_win32.c [new file with mode: 0644]
libffi/testsuite/libffi.call/struct2_win32.c [new file with mode: 0644]