The attached patch adds Go closure support for s390[x] atop Richard's go-closure branch in the Gcc repository (it requires on other patches discussed in the general Go closure topic). ChangeLog: -- 2014-12-16 Dominik Vogt * src/s390/sysv.S (ffi_call_SYSV): Adapt for Go closure support. Rewrite cfi information. (ffi_closure_SYSV): Adapt for Go closure support. Rewrite cfi information. (ffi_go_closure_SYSV): New function. * src/s390/ffi.c (ffi_call_int): Renamed from ffi_call, add closure argument. (ffi_call): New interface function. (ffi_call_go): New interface function for go calls. (ffi_closure_helper_SYSV): Pass closure internals as arguments. (ffi_prep_go_closure): New function for Go closure support. * src/s390/ffitarget.h (FFI_GO_CLOSURES): Activate Go closure support. -- Ciao Dominik ^_^ ^_^ -- Dominik Vogt IBM Germany