unix: add //go:build lines to assembly files The zsyscall_darwin*.s files were regenerated using mksyscall.go. The rest were updated manually, go fmt doesn't support formatting assembly files. Change-Id: I5efa23cb988300257de6bba4769e78c49a6382f1 Reviewed-on: https://go-review.googlesource.com/c/sys/+/312411 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
diff --git a/unix/asm_aix_ppc64.s b/unix/asm_aix_ppc64.s index 6b4027b..db9171c 100644 --- a/unix/asm_aix_ppc64.s +++ b/unix/asm_aix_ppc64.s
@@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build gc // +build gc #include "textflag.h"
diff --git a/unix/asm_linux_386.s b/unix/asm_linux_386.s index 0655ecb..8fd101d 100644 --- a/unix/asm_linux_386.s +++ b/unix/asm_linux_386.s
@@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build gc // +build gc #include "textflag.h"
diff --git a/unix/asm_linux_amd64.s b/unix/asm_linux_amd64.s index bc3fb6a..7ed38e4 100644 --- a/unix/asm_linux_amd64.s +++ b/unix/asm_linux_amd64.s
@@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build gc // +build gc #include "textflag.h"
diff --git a/unix/asm_linux_arm.s b/unix/asm_linux_arm.s index 55b13c7..8ef1d51 100644 --- a/unix/asm_linux_arm.s +++ b/unix/asm_linux_arm.s
@@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build gc // +build gc #include "textflag.h"
diff --git a/unix/asm_linux_arm64.s b/unix/asm_linux_arm64.s index 22a83d8..98ae027 100644 --- a/unix/asm_linux_arm64.s +++ b/unix/asm_linux_arm64.s
@@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build linux && arm64 && gc // +build linux // +build arm64 // +build gc
diff --git a/unix/asm_linux_mips64x.s b/unix/asm_linux_mips64x.s index dc222b9..21231d2 100644 --- a/unix/asm_linux_mips64x.s +++ b/unix/asm_linux_mips64x.s
@@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build linux && (mips64 || mips64le) && gc // +build linux // +build mips64 mips64le // +build gc
diff --git a/unix/asm_linux_mipsx.s b/unix/asm_linux_mipsx.s index d333f13..6783b26 100644 --- a/unix/asm_linux_mipsx.s +++ b/unix/asm_linux_mipsx.s
@@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build linux && (mips || mipsle) && gc // +build linux // +build mips mipsle // +build gc
diff --git a/unix/asm_linux_ppc64x.s b/unix/asm_linux_ppc64x.s index 459a629..19d4989 100644 --- a/unix/asm_linux_ppc64x.s +++ b/unix/asm_linux_ppc64x.s
@@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build linux && (ppc64 || ppc64le) && gc // +build linux // +build ppc64 ppc64le // +build gc
diff --git a/unix/asm_linux_riscv64.s b/unix/asm_linux_riscv64.s index 04d3849..e42eb81 100644 --- a/unix/asm_linux_riscv64.s +++ b/unix/asm_linux_riscv64.s
@@ -2,7 +2,9 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build riscv64,gc +//go:build riscv64 && gc +// +build riscv64 +// +build gc #include "textflag.h"
diff --git a/unix/asm_linux_s390x.s b/unix/asm_linux_s390x.s index cc30398..c46aab3 100644 --- a/unix/asm_linux_s390x.s +++ b/unix/asm_linux_s390x.s
@@ -2,8 +2,9 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build s390x +//go:build linux && s390x && gc // +build linux +// +build s390x // +build gc #include "textflag.h"
diff --git a/unix/asm_openbsd_mips64.s b/unix/asm_openbsd_mips64.s index 47c93fc..5e7a116 100644 --- a/unix/asm_openbsd_mips64.s +++ b/unix/asm_openbsd_mips64.s
@@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build gc // +build gc #include "textflag.h"
diff --git a/unix/asm_solaris_amd64.s b/unix/asm_solaris_amd64.s index 1f2c755..f8c5394 100644 --- a/unix/asm_solaris_amd64.s +++ b/unix/asm_solaris_amd64.s
@@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build gc // +build gc #include "textflag.h"
diff --git a/unix/zsyscall_darwin_386.1_13.s b/unix/zsyscall_darwin_386.1_13.s index 00da1eb..1c73a19 100644 --- a/unix/zsyscall_darwin_386.1_13.s +++ b/unix/zsyscall_darwin_386.1_13.s
@@ -1,6 +1,7 @@ // go run mkasm_darwin.go 386 // Code generated by the command above; DO NOT EDIT. +//go:build go1.13 // +build go1.13 #include "textflag.h"
diff --git a/unix/zsyscall_darwin_386.s b/unix/zsyscall_darwin_386.s index 1c53979..8cc7928 100644 --- a/unix/zsyscall_darwin_386.s +++ b/unix/zsyscall_darwin_386.s
@@ -1,6 +1,7 @@ // go run mkasm_darwin.go 386 // Code generated by the command above; DO NOT EDIT. +//go:build go1.12 // +build go1.12 #include "textflag.h"
diff --git a/unix/zsyscall_darwin_amd64.1_13.s b/unix/zsyscall_darwin_amd64.1_13.s index d671e83..ab59833 100644 --- a/unix/zsyscall_darwin_amd64.1_13.s +++ b/unix/zsyscall_darwin_amd64.1_13.s
@@ -1,6 +1,7 @@ // go run mkasm_darwin.go amd64 // Code generated by the command above; DO NOT EDIT. +//go:build go1.13 // +build go1.13 #include "textflag.h"
diff --git a/unix/zsyscall_darwin_amd64.s b/unix/zsyscall_darwin_amd64.s index c77bd6e..b8f316e 100644 --- a/unix/zsyscall_darwin_amd64.s +++ b/unix/zsyscall_darwin_amd64.s
@@ -1,6 +1,7 @@ // go run mkasm_darwin.go amd64 // Code generated by the command above; DO NOT EDIT. +//go:build go1.12 // +build go1.12 #include "textflag.h"
diff --git a/unix/zsyscall_darwin_arm.1_13.s b/unix/zsyscall_darwin_arm.1_13.s index 488e557..0cc80ad 100644 --- a/unix/zsyscall_darwin_arm.1_13.s +++ b/unix/zsyscall_darwin_arm.1_13.s
@@ -1,6 +1,7 @@ // go run mkasm_darwin.go arm // Code generated by the command above; DO NOT EDIT. +//go:build go1.13 // +build go1.13 #include "textflag.h"
diff --git a/unix/zsyscall_darwin_arm.s b/unix/zsyscall_darwin_arm.s index 5eec5f1..a99f9c1 100644 --- a/unix/zsyscall_darwin_arm.s +++ b/unix/zsyscall_darwin_arm.s
@@ -1,6 +1,7 @@ // go run mkasm_darwin.go arm // Code generated by the command above; DO NOT EDIT. +//go:build go1.12 // +build go1.12 #include "textflag.h"
diff --git a/unix/zsyscall_darwin_arm64.1_13.s b/unix/zsyscall_darwin_arm64.1_13.s index b29dabb..a5f96ff 100644 --- a/unix/zsyscall_darwin_arm64.1_13.s +++ b/unix/zsyscall_darwin_arm64.1_13.s
@@ -1,6 +1,7 @@ // go run mkasm_darwin.go arm64 // Code generated by the command above; DO NOT EDIT. +//go:build go1.13 // +build go1.13 #include "textflag.h"
diff --git a/unix/zsyscall_darwin_arm64.s b/unix/zsyscall_darwin_arm64.s index 53c402b..e30a697 100644 --- a/unix/zsyscall_darwin_arm64.s +++ b/unix/zsyscall_darwin_arm64.s
@@ -1,6 +1,7 @@ // go run mkasm_darwin.go arm64 // Code generated by the command above; DO NOT EDIT. +//go:build go1.12 // +build go1.12 #include "textflag.h"