[Bug go/68496] [libgo] reflect test fails on Linux x86-64
ian at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 23 21:18:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68496
--- Comment #3 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> ---
Author: ian
Date: Mon Nov 23 21:17:45 2015
New Revision: 230776
URL: https://gcc.gnu.org/viewcvs?rev=230776&root=gcc&view=rev
Log:
PR go/68496
reflect: Allocate space for FFI functions returning a zero-sized type.
The libffi library does not understand zero-sized types. We represent
them as a struct with a single field of type void. If such a type is
returned from a function, libffi will copy 1 byte of data. Allocate
space for that byte, although we won't use it.
Fixes https://gcc.gnu.org/PR68496.
Reviewed-on: https://go-review.googlesource.com/17175
Modified:
trunk/gcc/go/gofrontend/MERGE
trunk/libgo/runtime/go-reflect-call.c
More information about the Gcc-bugs
mailing list