PR 68496 points out a bug in the handling of reflect.Call calling a
function that returns a zero-sized type. libffi doesn't understand
zero-sized types, which don't exist in C, so they require special
handling. This patch fixes the problem. Bootstrapped and ran Go
testsuite on x86_64-pc-linux-gn
There was a bug in the libgo implementation of reflect.Call when passing
a function following a non-pointer type. This patch fixes the bug and
adds a test. Bootstrapped and ran Go testsuite on
x86_64-unknown-linux-gnu. Committed to mainline and 4.8 branch.
Ian
diff -r 7c369498bb81 libgo/go/ref
Part of my initial 64-bit support patch was bogus: I shadowed a variable
in a couple of functions used for reflect.Call. This patch fixes it.
Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
Committed to mainline.
Ian
diff -r cecca11207b7 libgo/runtime/go-reflect-call.c
--- a/libgo