aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2021-10-28 13:51:39 -0400
committerRuss Cox <rsc@golang.org>2021-10-28 22:38:00 +0000
commitaf05d8be3d9dd566b2ce3ff5344258314f128ff6 (patch)
treeb78a3f001064d25e280bb6586f982d4319a3898a /src/runtime
parentd0751b1ad8d7a68586dc7567cee44e0ce323f26f (diff)
downloadgo-af05d8be3d9dd566b2ce3ff5344258314f128ff6.tar.xz
all: manual fixups for //go:build vs // +build
Update many generators, also handle files that were not part of the standard build during 'go fix' in CL 344955. Fixes #41184. Change-Id: I1edc684e8101882dcd11f75c6745c266fccfe9e7 Reviewed-on: https://go-review.googlesource.com/c/go/+/359476 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/asan/asan.go3
-rw-r--r--src/runtime/mkduff.go2
-rw-r--r--src/runtime/mkpreempt.go1
-rw-r--r--src/runtime/msan/msan.go3
-rw-r--r--src/runtime/wincallback.go1
5 files changed, 0 insertions, 10 deletions
diff --git a/src/runtime/asan/asan.go b/src/runtime/asan/asan.go
index 40ebf96824..ac71466b71 100644
--- a/src/runtime/asan/asan.go
+++ b/src/runtime/asan/asan.go
@@ -3,9 +3,6 @@
// license that can be found in the LICENSE file.
//go:build asan && linux && (arm64 || amd64)
-// +build asan
-// +build linux
-// +build arm64 amd64
package asan
diff --git a/src/runtime/mkduff.go b/src/runtime/mkduff.go
index d05158975f..e8a85702c6 100644
--- a/src/runtime/mkduff.go
+++ b/src/runtime/mkduff.go
@@ -179,7 +179,6 @@ func copyARM64(w io.Writer) {
func tagsPPC64x(w io.Writer) {
fmt.Fprintln(w)
fmt.Fprintln(w, "//go:build ppc64 || ppc64le")
- fmt.Fprintln(w, "// +build ppc64 ppc64le")
fmt.Fprintln(w)
}
@@ -207,7 +206,6 @@ func copyPPC64x(w io.Writer) {
func tagsMIPS64x(w io.Writer) {
fmt.Fprintln(w)
fmt.Fprintln(w, "//go:build mips64 || mips64le")
- fmt.Fprintln(w, "// +build mips64 mips64le")
fmt.Fprintln(w)
}
diff --git a/src/runtime/mkpreempt.go b/src/runtime/mkpreempt.go
index acfb518d10..d662e73813 100644
--- a/src/runtime/mkpreempt.go
+++ b/src/runtime/mkpreempt.go
@@ -123,7 +123,6 @@ func header(arch string) {
if beLe[arch] {
base := arch[:len(arch)-1]
fmt.Fprintf(out, "//go:build %s || %sle\n", base, base)
- fmt.Fprintf(out, "// +build %s %sle\n\n", base, base)
}
fmt.Fprintf(out, "#include \"go_asm.h\"\n")
fmt.Fprintf(out, "#include \"textflag.h\"\n\n")
diff --git a/src/runtime/msan/msan.go b/src/runtime/msan/msan.go
index 9908a8ec22..f1bf4e1065 100644
--- a/src/runtime/msan/msan.go
+++ b/src/runtime/msan/msan.go
@@ -3,9 +3,6 @@
// license that can be found in the LICENSE file.
//go:build msan && linux && (amd64 || arm64)
-// +build msan
-// +build linux
-// +build amd64 arm64
package msan
diff --git a/src/runtime/wincallback.go b/src/runtime/wincallback.go
index ca9965979f..442a984708 100644
--- a/src/runtime/wincallback.go
+++ b/src/runtime/wincallback.go
@@ -22,7 +22,6 @@ func genasm386Amd64() {
buf.WriteString(`// Code generated by wincallback.go using 'go generate'. DO NOT EDIT.
//go:build 386 || amd64
-// +build 386 amd64
// runtime·callbackasm is called by external code to
// execute Go implemented callback function. It is not