cmd/go: pass down testing gccgo in TestScript
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 25 Sep 2018 14:16:32 +0000 (14:16 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 25 Sep 2018 14:16:32 +0000 (14:16 +0000)
commitb16084d244418d5421505f09851b5adf5abc35ec
tree872f530a1669ad0f37d72c8b952ee5fe88d9e334
parent97b8f8679d0db4b9159e1640ff34460aaccace74
cmd/go: pass down testing gccgo in TestScript

    This permits TestScript to work when gccgo is not installed.
    Previous testing was using a previously installed gccgo, not the newly
    built one.

    This revealed that the testing of whether an internal package is
    permitted was incorrect for standard library packages, since the
    uninstalled gccgo can see internal packages in the uninstalled libgo.
    Fix the internal package tests.

    This permitted removing a couple of gccgo-specific changes in the
    testsuite.

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

From-SVN: r264570
gcc/go/gofrontend/MERGE
libgo/go/cmd/go/internal/load/pkg.go
libgo/go/cmd/go/script_test.go
libgo/go/cmd/go/testdata/script/mod_internal.txt