This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r267956 - in /trunk: gcc/go/gofrontend/MERGE li...


Author: ian
Date: Tue Jan 15 23:21:24 2019
New Revision: 267956

URL: https://gcc.gnu.org/viewcvs?rev=267956&root=gcc&view=rev
Log:
    runtime: add padding to FFI type of struct ending with zero-sized field
    
    CL 157557 changes the compiler to add one byte padding to
    non-empty struct ending with a zero-sized field. Add the same
    padding to the FFI type, so reflect.Call works.
    
    This fixes test/fixedbugs/issue26335.go in the main repo.
    
    Reviewed-on: https://go-review.googlesource.com/c/158018

Modified:
    trunk/gcc/go/gofrontend/MERGE
    trunk/libgo/go/runtime/ffi.go


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]