]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: fix failing gccgo cases in TestScript/build_overlay
authorBryan C. Mills <bcmills@google.com>
Wed, 18 Nov 2020 03:54:13 +0000 (22:54 -0500)
committerBryan C. Mills <bcmills@google.com>
Thu, 19 Nov 2020 19:30:38 +0000 (19:30 +0000)
commite73697b710b2fd41b14336837ac6fd2585ad2a04
treecceed92859db40af424616a79852107f71997297
parentcb674b5c13d331fd5cef5bae7a2a67e5e0d41f7d
cmd/go: fix failing gccgo cases in TestScript/build_overlay

The 'go install' command does not support the -gccgo flag.
(I'm not sure why, but it doesn't.)

gccgo also uses system-native assembly syntax instead of cmd/compile's
Plan 9 derivative. I've added an assembly file that seems to work on
Linux, but I haven't tested it on other platforms; if it fails on
other platforms, we can refine the test as needed.

Fixes #42688

Change-Id: I0693a6a9eb58975f20cdc4160ef5f9a948563c88
Reviewed-on: https://go-review.googlesource.com/c/go/+/270978
Trust: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/testdata/script/build_overlay.txt