go/misc/cgo
Tai e13a4d9586 cmd/cgo: build unique C type cache keys from parent names
When translating C types, cache the in-progress type under its parent
names, so that anonymous structs can also be translated for multiple
typedefs, without clashing.

Standalone types are not affected by this change.

Also updated the test for issue 9026 because the C struct name
generation algorithm has changed.

Fixes #31891

Change-Id: I00cc64852a2617ce33da13f74caec886af05b9f2
Reviewed-on: https://go-review.googlesource.com/c/go/+/181857
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2019-10-05 00:16:04 +00:00
..
errors
fortran
gmp
life
nocgo
stdio
test cmd/cgo: build unique C type cache keys from parent names 2019-10-05 00:16:04 +00:00
testasan
testcarchive runtime: don't forward SIGPIPE on macOS 2019-08-31 06:19:40 +00:00
testcshared
testgodefs
testplugin
testsanitizers
testshared
testsigfwd
testso
testsovar
testtls