cmd/go, cmd/cgo: update gofrontend mangling checks
authorIan Lance Taylor <iant@golang.org>
Fri, 2 Oct 2020 23:03:37 +0000 (16:03 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 18 Nov 2020 02:32:07 +0000 (18:32 -0800)
commit397654d66a4f84d4439e046cd330d9968af3b62b
tree37402d687877131f53eae33139be194f9d26cb84
parent4dabb03719553f88ef0d74c75ccdc6c8aa172d6b
cmd/go, cmd/cgo: update gofrontend mangling checks

This is a port of two patches in the master repository.

https://golang.org/cl/259298

    cmd/cgo: split gofrontend mangling checks into cmd/internal/pkgpath

    This is a step toward porting https://golang.org/cl/219817 from the
    gofrontend repo to the main repo.

    Note that this also corrects the implementation of the v2 mangling
    scheme to use ..u and ..U where appropriate.

https://golang.org/cl/259299

    cmd/go: use cmd/internal/pkgpath for gccgo pkgpath symbol

For golang/go#37272
For golang/go#41862

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/270637
gcc/go/gofrontend/MERGE
libgo/check-packages.txt
libgo/go/cmd/cgo/main.go
libgo/go/cmd/cgo/out.go
libgo/go/cmd/go/internal/work/gccgo.go
libgo/go/cmd/internal/pkgpath/pkgpath.go [new file with mode: 0644]
libgo/go/cmd/internal/pkgpath/pkgpath_test.go [new file with mode: 0644]
libgo/gotool-packages.txt