]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: don't translate bitfields into Go fields
authorIan Lance Taylor <iant@golang.org>
Wed, 2 Sep 2020 00:01:00 +0000 (17:01 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 16 Sep 2020 03:02:13 +0000 (03:02 +0000)
commiteaa97fbf20baffac713ed1b780f864a6fee54ab6
tree031393ccd793d62fa819ad97378fb281206e915b
parentb6dbaef68fdbb3f14387e4c32a8890144220f54e
cmd/cgo: don't translate bitfields into Go fields

The cgo tool would sometimes emit a bitfield at an offset that did not
correspond to the C offset, such as for the example in the new test.

Change-Id: I61b2ca10ee44a42f81c13ed12865f2060168fed5
Reviewed-on: https://go-review.googlesource.com/c/go/+/252378
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
doc/go1.16.html
misc/cgo/testgodefs/testdata/bitfields.go [new file with mode: 0644]
misc/cgo/testgodefs/testdata/main.go
misc/cgo/testgodefs/testgodefs_test.go
src/cmd/cgo/gcc.go