]> Cypherpunks repositories - gostls13.git/commit
cmd/go: detect Go assembly before assembling with gcc
authorRuss Cox <rsc@golang.org>
Thu, 22 Jun 2017 20:11:10 +0000 (16:11 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 23 Jun 2017 00:21:06 +0000 (00:21 +0000)
commita6df299e89f6ba56d71571f694fb7327294ae72e
tree9a70d2647950e1eb046ee52234e2cf61ca0ebedc
parent53e4b8fc02bb9440a35b20f383c0bc86eece80a6
cmd/go: detect Go assembly before assembling with gcc

Avoids confusing errors from the GNU assembler
processing Go assembly source code.

Fixes #19448.

Change-Id: Ic2c68b2521847cca5a3d078a092e5c60ec340840
Reviewed-on: https://go-review.googlesource.com/46423
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/work/build.go
src/cmd/go/testdata/src/cgoasm/p.go [new file with mode: 0644]
src/cmd/go/testdata/src/cgoasm/p.s [new file with mode: 0644]