This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r267956 - in /trunk: gcc/go/gofrontend/MERGE li...
- From: ian at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 15 Jan 2019 23:21:24 -0000
- Subject: 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