golang.org/x/tools/go/analysis: pass "gccgo" to types.SizesFor
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 22 Jan 2019 15:43:40 +0000 (15:43 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 22 Jan 2019 15:43:40 +0000 (15:43 +0000)
commit494df8753b8c0a4dd02e7208e0bae20bee6ec1d5
tree1cb7f772ce52d0061ee020d8c7b76b324f50bcce
parent12f154688d9e942614d49178dee92b766afb64bb
golang.org/x/tools/go/analysis: pass "gccgo" to types.SizesFor

    For the gofrontend copy, change calls to types.SizesFor to pass
    "gccgo" rather than "gc".  Leave the asmdecl pass unchanged since that
    pass is gc-specific anyhow.

    This has been fixed in a better way in the external repo by
    https://golang.org/cl/158317 and friends, but that is not in 1.12, so
    use this approach for now.

    Reviewed-on: https://go-review.googlesource.com/c/158842

From-SVN: r268153
gcc/go/gofrontend/MERGE
libgo/go/golang.org/x/tools/go/analysis/passes/cgocall/cgocall.go
libgo/go/golang.org/x/tools/go/analysis/passes/printf/types.go
libgo/go/golang.org/x/tools/go/analysis/passes/shift/shift.go
libgo/go/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go