backport: ffi.c (ffi_call_go, [...]): New functions.
authorAndreas Schwab <schwab@suse.de>
Wed, 15 Aug 2018 06:57:45 +0000 (06:57 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Wed, 15 Aug 2018 06:57:45 +0000 (06:57 +0000)
commit68d235936bff881b22b6f9a8ab4446c225064454
treeb9b8282cb3f81076d059c08749f5d1559a80d1b4
parent107192f73ec949170ac5c65e52cf85c93be2f07a
backport: ffi.c (ffi_call_go, [...]): New functions.

Backport of RISC-V support for libffi go closures
* src/riscv/ffi.c (ffi_call_go, ffi_prep_go_closure): New
functions.
(ffi_call_int): Renamed from ffi_call.
(ffi_call_asm, ffi_closure_inner): Adjust interface.
* src/riscv/ffitarget.h (FFI_GO_CLOSURES): Define.
* src/riscv/sysv.S (ffi_go_closure_asm): New function.
(ffi_closure_asm, ffi_call_asm): Update for adjusted interfaces.

From-SVN: r263550
libffi/ChangeLog
libffi/src/riscv/ffi.c
libffi/src/riscv/ffitarget.h
libffi/src/riscv/sysv.S