PR go/61877
commitfaf2ad13adf31dab46af323e462d78c91f21af3b
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 Oct 2014 15:51:38 +0000 (3 15:51 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 Oct 2014 15:51:38 +0000 (3 15:51 +0000)
treeb092d9b0ceaf4ff19e48ba6cb48bf54842aac96c
parent264bf2602c849314570128f1db3dba27ae959d91
PR go/61877
refect: fix direct call of variadic method value

As reported in bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61877
gcc mainline has regressed in this.  This CL adds the tests proposed
for the main Go repository:

        https://codereview.appspot.com/151280043/
        https://codereview.appspot.com/152060043/

restores the code from the amd64/386 path that makes this work and
was lost when the Go 1.3 stdlib was merged and changes the FFI path
to call into the same helper code as the amd64/386 path.

I've only tested this on amd64 but I did test a version that was
patched to unconditionally take the FFI path.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215859 138bc75d-0d04-0410-961f-82ee72b054a4
libgo/go/reflect/all_test.go
libgo/go/reflect/makefunc.go