runtime: for FFI, treat directIface types as pointers
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 17 Sep 2019 20:26:21 +0000 (20:26 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 17 Sep 2019 20:26:21 +0000 (20:26 +0000)
commit7e6fecf5008038b466d350a0d7676f8d8ba59ff1
treea3536079b339f8dd68bb024a5a888f82bee3b328
parent033425d0ed0092748fc919e5c40dc47421dcdd89
runtime: for FFI, treat directIface types as pointers

    This only matters on systems that pass a struct with a single pointer
    field differently than passing a single pointer.  I noticed it on
    32-bit PPC, where the reflect package TestDirectIfaceMethod failed.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/195878

From-SVN: r275814
gcc/go/gofrontend/MERGE
libgo/go/runtime/ffi.go