re PR go/68496 ([libgo] reflect test fails on Linux x86-64)
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 23 Nov 2015 21:17:45 +0000 (21:17 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 23 Nov 2015 21:17:45 +0000 (21:17 +0000)
commit8c61286797664f445db424050ea4c73cf265b242
treed37869769756562cc2596cd4783de2c387baf6b9
parentcbd03aee24f57b42a82a119e4182b442ef3b8db3
re PR go/68496 ([libgo] reflect test fails on Linux x86-64)

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

From-SVN: r230776
gcc/go/gofrontend/MERGE
libgo/runtime/go-reflect-call.c