]> Cypherpunks repositories - gostls13.git/commit
go/internal/gccgoimporter: enhance for new export data, fix test issues
authorThan McIntosh <thanm@google.com>
Fri, 16 Nov 2018 15:11:47 +0000 (10:11 -0500)
committerThan McIntosh <thanm@google.com>
Mon, 26 Nov 2018 20:35:55 +0000 (20:35 +0000)
commit984be3b0f8388161e166039de8b7ac5383a76d10
treeb4b8cfb3e85e90f4506913b1269488c2d0a23132
parentca3749230b5a7d43b3292226fdb2b6f3de5d653b
go/internal/gccgoimporter: enhance for new export data, fix test issues

This patch merges in support for reading indexed type export data,
from the gofrontend CL https://golang.org/cl/143022 (which includes
a change in the export data version number from V2 to V3).

Also fixes the key tests to insure that they run both in gccgo builds
and main Go repo builds if "gccgo" is present (prior to this the tests
were not running in either scenario); this required fixing up some of
the expected results.

Fixes #28961.

Change-Id: I644d171f2a46be9160f89dada06ab3c20468bab7
Reviewed-on: https://go-review.googlesource.com/c/149957
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/go/internal/gccgoimporter/gccgoinstallation_test.go
src/go/internal/gccgoimporter/importer.go
src/go/internal/gccgoimporter/importer_test.go
src/go/internal/gccgoimporter/parser.go
src/go/internal/gccgoimporter/parser_test.go