From 09eb48e85fd7a47ea9bf31fe924287b64d289366 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 23 Apr 2021 12:12:02 +0200 Subject: [PATCH] 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 Run-TryBot: Tobias Klauser TryBot-Result: Go Bot Reviewed-by: Ian Lance Taylor --- unix/asm_aix_ppc64.s | 1 + unix/asm_linux_386.s | 1 + unix/asm_linux_amd64.s | 1 + unix/asm_linux_arm.s | 1 + unix/asm_linux_arm64.s | 1 + unix/asm_linux_mips64x.s | 1 + unix/asm_linux_mipsx.s | 1 + unix/asm_linux_ppc64x.s | 1 + unix/asm_linux_riscv64.s | 4 +++- unix/asm_linux_s390x.s | 3 ++- unix/asm_openbsd_mips64.s | 1 + unix/asm_solaris_amd64.s | 1 + unix/zsyscall_darwin_386.1_13.s | 1 + unix/zsyscall_darwin_386.s | 1 + unix/zsyscall_darwin_amd64.1_13.s | 1 + unix/zsyscall_darwin_amd64.s | 1 + unix/zsyscall_darwin_arm.1_13.s | 1 + unix/zsyscall_darwin_arm.s | 1 + unix/zsyscall_darwin_arm64.1_13.s | 1 + unix/zsyscall_darwin_arm64.s | 1 + 20 files changed, 23 insertions(+), 2 deletions(-) diff --git a/unix/asm_aix_ppc64.s b/unix/asm_aix_ppc64.s index 6b4027b3..db9171c2 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 0655ecbf..8fd101d0 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 bc3fb6ac..7ed38e43 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 55b13c7b..8ef1d514 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 22a83d8e..98ae0276 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 dc222b90..21231d2c 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 d333f13c..6783b26c 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 459a629c..19d49893 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 04d38497..e42eb81d 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 cc303989..c46aab33 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 47c93fcb..5e7a1169 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 1f2c755a..f8c5394c 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 00da1ebf..1c73a192 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 1c53979a..8cc7928d 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 d671e831..ab59833f 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 c77bd6e2..b8f316e6 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 488e5570..0cc80ad8 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 5eec5f1d..a99f9c11 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 b29dabb0..a5f96ffb 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 53c402bf..e30a6974 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"