diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-07-13 20:39:02 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-07-13 20:39:02 +0000 |
commit | 867b003fd74a1f77c9835a8c64e1dcf88f639aff (patch) | |
tree | 56301120971100639a4f923361812cb8d0b79362 /gcc/go | |
parent | 7264261f64fab95545cd1e5bae429fad5f2b44d7 (diff) | |
download | gcc-867b003fd74a1f77c9835a8c64e1dcf88f639aff.zip gcc-867b003fd74a1f77c9835a8c64e1dcf88f639aff.tar.gz gcc-867b003fd74a1f77c9835a8c64e1dcf88f639aff.tar.bz2 |
runtime: skip zero-sized fields in structs when converting to FFI
The libffi library doesn't understand zero-sized objects.
When we see a zero-sized field in a struct, just skip it when
converting to the FFI data structures. There is no value to pass in
any case, so not telling libffi about the field doesn't affect
anything.
The test case for this is https://golang.org/cl/123316.
Fixes golang/go#26335
Reviewed-on: https://go-review.googlesource.com/123335
From-SVN: r262651
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/gofrontend/MERGE | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 8aaa045..3e0b655 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -3f7e72eca3f9221e67c055841d42851aa6a66aff +db991403fc97854201b3f40492f4f6b9d471cabc The first line of this file holds the git revision number of the last merge done from the gofrontend repository. |