r267861 - in /trunk/gcc/go/gofrontend: MERGE ex...
ian@gcc.gnu.org
ian@gcc.gnu.org
Fri Jan 11 23:16:00 GMT 2019
Author: ian
Date: Fri Jan 11 23:16:38 2019
New Revision: 267861
URL: https://gcc.gnu.org/viewcvs?rev=267861&root=gcc&view=rev
Log:
compiler: pad structs ending with zero-sized field
For a struct with zero-sized last field, the address of the
field falls out of the object boundary, which confuses the
garbage collector. Pad an extra byte in this case.
Reviewed-on: https://go-review.googlesource.com/c/157557
Modified:
trunk/gcc/go/gofrontend/MERGE
trunk/gcc/go/gofrontend/expressions.cc
trunk/gcc/go/gofrontend/types.cc
trunk/gcc/go/gofrontend/types.h
More information about the Gcc-cvs
mailing list