cmd: Use correct install tool dir with gccgo
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 20 Nov 2015 21:30:16 +0000 (21:30 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 20 Nov 2015 21:30:16 +0000 (21:30 +0000)
commitdcfa3345eb73a09b43b641e1df2015741220450b
treee4dce54032eeb6f0868277e245ff6a364cccc0ea
parent1fb19247a9d1771ffd86e27d55cb8863b32e0f52
cmd: Use correct install tool dir with gccgo

    When using the go command built from gccgo to build and
    install a go tool, use the value from runtime GCCGOTOOLDIR as
    the install directory.

    This also fixes the output from 'go tool' when used with the
    gccgo-built go command, to only include the go tools and not
    other binaries found in the same directory.

    Reviewed-on: https://go-review.googlesource.com/16516

From-SVN: r230677
gcc/go/gofrontend/MERGE
libgo/go/cmd/go/pkg.go
libgo/go/cmd/go/tool.go