runtime, reflect: rewrite Go to FFI type conversion in Go
commit63e457ad7f3d926eaf44dbfa36270b1d81d5d051
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Nov 2016 00:15:38 +0000 (18 00:15 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Nov 2016 00:15:38 +0000 (18 00:15 +0000)
tree67be8f93c3e7e9a2a592f5932622a54083146948
parent6bc68963a16910bdbf952b6c8b84a4ae5ebf74ca
runtime, reflect: rewrite Go to FFI type conversion in Go

    As we move toward the Go 1.7 garbage collector, it's essential that all
    allocation of values that can contain Go pointers be done using the
    correct type descriptor.  That is simplest if we do all such allocation
    in Go code.  This rewrites the code that converts from a Go type to a
    libffi CIF into Go.

    Reviewed-on: https://go-review.googlesource.com/33353

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242578 138bc75d-0d04-0410-961f-82ee72b054a4
14 files changed:
gcc/go/gofrontend/MERGE
libgo/Makefile.am
libgo/Makefile.in
libgo/configure
libgo/configure.ac
libgo/go/reflect/makefunc.go
libgo/go/reflect/makefunc_ffi.go
libgo/go/reflect/makefunc_ffi_c.c
libgo/go/runtime/ffi.go [new file with mode: 0644]
libgo/mkrsysinfo.sh
libgo/runtime/go-ffi.c
libgo/runtime/go-ffi.h [deleted file]
libgo/runtime/go-reflect-call.c
libgo/sysinfo.c