From: Tobias Klauser Date: Sat, 1 May 2021 13:36:34 +0000 (+0200) Subject: syscall: add //go:build lines to assembly files X-Git-Tag: go1.17beta1~270 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=830e63a7a330577bfb51404f38beb1b47ceae6b6;p=gostls13.git syscall: add //go:build lines to assembly files Change-Id: Ie296af523d70def269f9fb2ae35dfd2893abb2d9 Reviewed-on: https://go-review.googlesource.com/c/go/+/315275 Trust: Tobias Klauser Run-TryBot: Tobias Klauser Reviewed-by: Ian Lance Taylor --- 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"