r230777 - /branches/gcc-5-branch/libgo/runtime/...

ian@gcc.gnu.org ian@gcc.gnu.org
Mon Nov 23 21:18:00 GMT 2015


Author: ian
Date: Mon Nov 23 21:18:03 2015
New Revision: 230777

URL: https://gcc.gnu.org/viewcvs?rev=230777&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:
    branches/gcc-5-branch/libgo/runtime/go-reflect-call.c



More information about the Gcc-cvs mailing list