ffi.c (ffi_struct_type): Put type declaration on separate line.
commit5961d13d279329211e2a2d2c294395d17e4c7fcb
authorJohn David Anglin <danglin@gcc.gnu.org>
Sun, 4 Sep 2016 17:39:05 +0000 (4 17:39 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 4 Sep 2016 17:39:05 +0000 (4 17:39 +0000)
tree76f94005b2db4feb8e825883b98b4bc9e47b3d69
parentd6598cf719fb63ead5618cf8908218519e82cc3e
ffi.c (ffi_struct_type): Put type declaration on separate line.

* src/pa/ffi.c (ffi_struct_type): Put type declaration on separate line.
(ffi_prep_args_pa32): Likewise.
(ffi_size_stack_pa32): Likewise.
(ffi_prep_cif_machdep): Likewise.
(ffi_call): Likewise.  Rename to ffi_call_int.  Add closure argument
and update call to ffi_call_pa32.
(ffi_call, ffi_call_go, ffi_prep_go_closure): New.
(ffi_closure_inner_pa32): Update to handle go closures.
* src/pa/ffitarget.h (FFI_GO_CLOSURES): Define.
* src/pa/hpux32.S (ffi_call_pa32): Pass go closure argument in static
chain register (%ret1).
(ffi_closure_pa32): Set closure type argument to zero.
(ffi_go_closure_pa32): New function.  Add unwind data for it.
* src/pa/linux.S: Likewise.  Use cfi directives for unwind data.
* testsuite/libffi.go/static-chain.h (STATIC_CHAIN_REG): Define for
hppa.

From-SVN: r239978
libffi/ChangeLog
libffi/src/pa/ffi.c
libffi/src/pa/ffitarget.h
libffi/src/pa/hpux32.S
libffi/src/pa/linux.S
libffi/testsuite/libffi.go/static-chain.h