]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR go/91781
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Sep 2019 20:24:00 +0000 (20:24 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Sep 2019 20:24:00 +0000 (20:24 +0000)
commit934789bef397856798e75ae9451083fa3b664866
tree7ff26ef5001f70214c75d5fe6546930b57a52d4c
parentf4f166c7ec65be02b01d497d21312795712b2f1c
PR go/91781
    reflect: promote integer closure return to full word

    The libffi library expects an integer return type to be promoted to a
    full word.  Implement that when returning from a closure written in Go.
    This only matters on big-endian systems when returning an integer smaller
    than the pointer size, which is why we didn't notice it until now.

    Fixes https://gcc.gnu.org/PR91781.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@275813 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
libgo/go/reflect/makefunc_ffi.go
libgo/go/reflect/makefunc_ffi_c.c
libgo/runtime/go-reflect-call.c