diff options
author | melonedo <funanzeng@gmail.com> | 2022-09-19 16:01:04 +0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2022-09-27 09:28:39 -0700 |
commit | f38162977e2b7efaa75233a0cba2a30a2b7f5132 (patch) | |
tree | fe1805c24a4ce17d6d50af1ed31d23cb29ae935e /gcc/go/gofrontend | |
parent | 0b2706ac0e6d6b990d789325f9e081dfe4501f4f (diff) | |
download | gcc-f38162977e2b7efaa75233a0cba2a30a2b7f5132.zip gcc-f38162977e2b7efaa75233a0cba2a30a2b7f5132.tar.gz gcc-f38162977e2b7efaa75233a0cba2a30a2b7f5132.tar.bz2 |
runtime: synchronize empty struct field handling
In GCCGO and gollvm, the logic for allocating one byte for the last field is:
1. the last field has zero size
2. the struct itself does not have zero size
3. the last field is not blank
this commit adds the last two conditions to runtime.structToFFI.
For golang/go#55146
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/431735
Diffstat (limited to 'gcc/go/gofrontend')
-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 f7a7985..73aa712 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -42efec8c126cf3787bc7c89d9c7f224eff7c5a21 +0140cca9bc0fad1108c7ed369376ac71cc4bfecf The first line of this file holds the git revision number of the last merge done from the gofrontend repository. |