]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.3] cmd/cgo: use same Go type for typedef to anonymous struct
authorDavid Symonds <dsymonds@golang.org>
Tue, 3 Jun 2014 01:18:01 +0000 (11:18 +1000)
committerDavid Symonds <dsymonds@golang.org>
Tue, 3 Jun 2014 01:18:01 +0000 (11:18 +1000)
commite82cde2d5dda33564904f2db04d3e68960bec384
tree0e2c5e9cf4efc7240ff8d91dda03c544334d655c
parent4aea3f6fee166fa29115fd3f29469a35d5a12bce
[release-branch.go1.3] cmd/cgo: use same Go type for typedef to anonymous struct

««« CL 102080043 / 256d975c53cb
cmd/cgo: use same Go type for typedef to anonymous struct

If we see a typedef to an anonymous struct more than once,
presumably in two different Go files that import "C", use the
same Go type name.

Fixes #8133.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/102080043
»»»

TBR=adg
CC=golang-codereviews
https://golang.org/cl/102100043
misc/cgo/test/issue8331.h [new file with mode: 0644]
misc/cgo/test/issue8331a.go [new file with mode: 0644]
misc/cgo/test/issue8331b.go [new file with mode: 0644]
src/cmd/cgo/gcc.go