diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2021-05-01 15:36:34 +0200 |
---|---|---|
committer | Tobias Klauser <tobias.klauser@gmail.com> | 2021-05-04 12:47:05 +0000 |
commit | 830e63a7a330577bfb51404f38beb1b47ceae6b6 (patch) | |
tree | a901ebdc7c0ab83dbbe229d84737bdd1ea00d157 /src/syscall | |
parent | 45600bcd614f5855060b18b189f7e126fedfe637 (diff) | |
download | go-830e63a7a330577bfb51404f38beb1b47ceae6b6.tar.gz go-830e63a7a330577bfb51404f38beb1b47ceae6b6.zip |
syscall: add //go:build lines to assembly files
Change-Id: Ie296af523d70def269f9fb2ae35dfd2893abb2d9
Reviewed-on: https://go-review.googlesource.com/c/go/+/315275
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/syscall')
-rw-r--r-- | src/syscall/asm9_unix1_amd64.s | 5 | ||||
-rw-r--r-- | src/syscall/asm9_unix2_amd64.s | 5 | ||||
-rw-r--r-- | src/syscall/asm_linux_mips64x.s | 1 | ||||
-rw-r--r-- | src/syscall/asm_linux_mipsx.s | 1 | ||||
-rw-r--r-- | src/syscall/asm_linux_ppc64x.s | 1 | ||||
-rw-r--r-- | src/syscall/asm_unix_386.s | 5 | ||||
-rw-r--r-- | src/syscall/asm_unix_amd64.s | 5 |
7 files changed, 15 insertions, 8 deletions
diff --git a/src/syscall/asm9_unix1_amd64.s b/src/syscall/asm9_unix1_amd64.s index f2ae87d623..e4609d075c 100644 --- a/src/syscall/asm9_unix1_amd64.s +++ b/src/syscall/asm9_unix1_amd64.s @@ -1,9 +1,10 @@ -// +build netbsd - // Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build netbsd +// +build netbsd + #include "textflag.h" #include "funcdata.h" diff --git a/src/syscall/asm9_unix2_amd64.s b/src/syscall/asm9_unix2_amd64.s index 6633c12529..7e5e3c52ad 100644 --- a/src/syscall/asm9_unix2_amd64.s +++ b/src/syscall/asm9_unix2_amd64.s @@ -1,9 +1,10 @@ -// +build dragonfly freebsd - // Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build dragonfly || freebsd +// +build dragonfly freebsd + #include "textflag.h" #include "funcdata.h" diff --git a/src/syscall/asm_linux_mips64x.s b/src/syscall/asm_linux_mips64x.s index b3ae59023d..d18a7b8944 100644 --- a/src/syscall/asm_linux_mips64x.s +++ b/src/syscall/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) // +build linux // +build mips64 mips64le diff --git a/src/syscall/asm_linux_mipsx.s b/src/syscall/asm_linux_mipsx.s index ee436490b2..cafa6a35c7 100644 --- a/src/syscall/asm_linux_mipsx.s +++ b/src/syscall/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) // +build linux // +build mips mipsle diff --git a/src/syscall/asm_linux_ppc64x.s b/src/syscall/asm_linux_ppc64x.s index 8be0d68d70..eac7272f1d 100644 --- a/src/syscall/asm_linux_ppc64x.s +++ b/src/syscall/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) // +build linux // +build ppc64 ppc64le diff --git a/src/syscall/asm_unix_386.s b/src/syscall/asm_unix_386.s index f262cd3adb..9f9b7f362d 100644 --- a/src/syscall/asm_unix_386.s +++ b/src/syscall/asm_unix_386.s @@ -1,9 +1,10 @@ -// +build netbsd freebsd - // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build freebsd || netbsd +// +build freebsd netbsd + #include "textflag.h" #include "funcdata.h" diff --git a/src/syscall/asm_unix_amd64.s b/src/syscall/asm_unix_amd64.s index aa03eb96a0..c53e1a42b6 100644 --- a/src/syscall/asm_unix_amd64.s +++ b/src/syscall/asm_unix_amd64.s @@ -1,9 +1,10 @@ -// +build netbsd freebsd dragonfly - // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build dragonfly || freebsd || netbsd +// +build dragonfly freebsd netbsd + #include "textflag.h" #include "funcdata.h" |