]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: add //go:build lines to assembly files
authorTobias Klauser <tklauser@distanz.ch>
Wed, 12 May 2021 15:55:42 +0000 (17:55 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Thu, 13 May 2021 09:12:17 +0000 (09:12 +0000)
Don't add them to files in vendor and cmd/vendor though. These will be
pulled in by updating the respective dependencies.

For #41184

Change-Id: Icc57458c9b3033c347124323f33084c85b224c70
Reviewed-on: https://go-review.googlesource.com/c/go/+/319389
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
90 files changed:
src/cmd/compile/internal/ssa/flags_amd64_test.s
src/cmd/compile/internal/ssa/flags_arm64_test.s
src/cmd/dist/vfp_arm.s
src/cmd/dist/vfp_default.s
src/crypto/cipher/xor_ppc64x.s
src/crypto/md5/md5block_ppc64x.s
src/crypto/x509/internal/macos/corefoundation.s
src/crypto/x509/internal/macos/security.s
src/internal/bytealg/compare_mips64x.s
src/internal/bytealg/compare_mipsx.s
src/internal/bytealg/compare_ppc64x.s
src/internal/bytealg/count_ppc64x.s
src/internal/bytealg/equal_mips64x.s
src/internal/bytealg/equal_mipsx.s
src/internal/bytealg/equal_ppc64x.s
src/internal/bytealg/index_ppc64x.s
src/internal/bytealg/indexbyte_mips64x.s
src/internal/bytealg/indexbyte_mipsx.s
src/internal/bytealg/indexbyte_ppc64x.s
src/internal/cpu/cpu_x86.s
src/math/big/arith_386.s
src/math/big/arith_amd64.s
src/math/big/arith_arm.s
src/math/big/arith_arm64.s
src/math/big/arith_mips64x.s
src/math/big/arith_mipsx.s
src/math/big/arith_ppc64x.s
src/math/big/arith_riscv64.s
src/math/big/arith_s390x.s
src/math/big/arith_wasm.s
src/math/floor_ppc64x.s
src/math/modf_ppc64x.s
src/math/sqrt_mipsx.s
src/math/sqrt_ppc64x.s
src/math/sqrt_riscv64.s
src/reflect/asm_mips64x.s
src/reflect/asm_mipsx.s
src/reflect/asm_ppc64x.s
src/runtime/asm_mips64x.s
src/runtime/asm_mipsx.s
src/runtime/asm_ppc64x.s
src/runtime/atomic_mips64x.s
src/runtime/atomic_mipsx.s
src/runtime/atomic_ppc64x.s
src/runtime/cgo/asm_mips64x.s
src/runtime/cgo/asm_mipsx.s
src/runtime/cgo/asm_ppc64x.s
src/runtime/cgo/asm_riscv64.s
src/runtime/duff_mips64x.s
src/runtime/duff_ppc64x.s
src/runtime/internal/atomic/atomic_mips64x.s
src/runtime/internal/atomic/atomic_mipsx.s
src/runtime/internal/atomic/atomic_ppc64x.s
src/runtime/internal/atomic/sys_nonlinux_arm.s
src/runtime/libfuzzer_amd64.s
src/runtime/libfuzzer_arm64.s
src/runtime/memclr_386.s
src/runtime/memclr_amd64.s
src/runtime/memclr_mips64x.s
src/runtime/memclr_mipsx.s
src/runtime/memclr_ppc64x.s
src/runtime/memmove_386.s
src/runtime/memmove_amd64.s
src/runtime/memmove_mips64x.s
src/runtime/memmove_mipsx.s
src/runtime/memmove_ppc64x.s
src/runtime/mkduff.go
src/runtime/mkpreempt.go
src/runtime/msan_amd64.s
src/runtime/msan_arm64.s
src/runtime/preempt_mips64x.s
src/runtime/preempt_mipsx.s
src/runtime/preempt_ppc64x.s
src/runtime/race_amd64.s
src/runtime/race_arm64.s
src/runtime/race_ppc64le.s
src/runtime/rt0_linux_mips64x.s
src/runtime/rt0_linux_mipsx.s
src/runtime/sys_aix_ppc64.s
src/runtime/sys_linux_mips64x.s
src/runtime/sys_linux_mipsx.s
src/runtime/sys_linux_ppc64x.s
src/runtime/tls_arm.s
src/runtime/tls_mips64x.s
src/runtime/tls_mipsx.s
src/runtime/tls_ppc64x.s
src/runtime/wincallback.go
src/runtime/zcallback_windows.s
src/sync/atomic/asm.s
src/sync/atomic/race.s

index 8bd87019af71164182b068b2883ebad7e399dc47..7402f6badb1d8254bd879a4d7e92118860ca2b81 100644 (file)
@@ -2,8 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build amd64
-
 #include "textflag.h"
 
 TEXT ·asmAddFlags(SB),NOSPLIT,$0-24
index f201bcc9943502b620995d5341a4fd9cfa010465..639d7e3aedc299ece9b9a0a27debc8b566eee922 100644 (file)
@@ -2,8 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build arm64
-
 #include "textflag.h"
 
 TEXT ·asmAddFlags(SB),NOSPLIT,$0-24
index d571f8b82a2d39e6e9d1495bfb03af3c0aaa072f..525ee9b3661f529cab4e62ef676e2fddfa4d4458 100644 (file)
@@ -2,7 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build gc,arm
+//go:build gc
+// +build gc
 
 #include "textflag.h"
 
index 84829beeff35742ab79ff67ed8714d9b37b830e5..0c1e16b0aa052380bcfc6f541c49c84c4cf74467 100644 (file)
@@ -2,7 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build !arm,gc
+//go:build gc && !arm
+// +build gc,!arm
 
 #include "textflag.h"
 
index 4cef31d0ee344b81453a26b592fc3f42743d3df2..2ba6d9639c46c96d6d0acb2dd5ef3f37f20db30d 100644 (file)
@@ -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 ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "textflag.h"
index e1f859e3376bddcb9dbc2d00a507f0ffb9c8ae34..8c28ec2473ca024f8793e73ff9e324d7c9ff8816 100644 (file)
@@ -10,6 +10,7 @@
 // Licence: I hereby disclaim the copyright on this code and place it
 // in the public domain.
 
+//go:build ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "textflag.h"
index a9efaa299d8754a1239560585fe3950ecff1653e..cda2336c9d1b66301b14bf6c19a63c030c0c29a4 100644 (file)
@@ -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 darwin && !ios
 // +build darwin,!ios
 
 #include "textflag.h"
index 09ce5c6c769db1236c10365ae74180108ea0625f..0038f25b27701a33a3cde4b2d78eadeac9fe11a0 100644 (file)
@@ -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 darwin && !ios
 // +build darwin,!ios
 
 #include "textflag.h"
index 4f05fceaca556588ba19bad5b26c89c81eb66d4e..b472e510bce7a5872a210da038e7a820186f21e5 100644 (file)
@@ -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 mips64 || mips64le
 // +build mips64 mips64le
 
 #include "go_asm.h"
index 9ac5ba56877521b751cab221778f8658fc22ae5f..dcc4916e567141bcd18cb07c3832f8cfa060a79f 100644 (file)
@@ -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 mips || mipsle
 // +build mips mipsle
 
 #include "go_asm.h"
index 7819da31cd01172805b131caa7f2984833651e4d..83444fa826008b1ed0de2fa053f05bd59935f6e5 100644 (file)
@@ -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 ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "go_asm.h"
index a64d7d792d0d7e2a2d23d7541b8d1a0540818ec0..94163cbd8a398d837d10a147a9c2b7d68e9ff26d 100644 (file)
@@ -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 ppc64le || ppc64
 // +build ppc64le ppc64
 
 #include "go_asm.h"
index 641e3ff06caf885e126eaefcdd438110171a2f97..c2f7d3997edb36c0d38ad5739c4f5b61455cd3aa 100644 (file)
@@ -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 mips64 || mips64le
 // +build mips64 mips64le
 
 #include "go_asm.h"
index 1cabc70178be09fb30fe8cf842bc802bc9dbc23e..11e5549e45a1fac488a6c8e65164cf8cb0887edf 100644 (file)
@@ -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 mips || mipsle
 // +build mips mipsle
 
 #include "go_asm.h"
index 18171eaedc9474fa5d59f211a5876022b8a08151..5f0fea521b24a74687bb9cf3a42db3dd517049f5 100644 (file)
@@ -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 ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "go_asm.h"
index b7a1e2d7a2277f804311bf2b328ab3424866300b..3ed94421256115bef15079f524ff3672a7330f31 100644 (file)
@@ -21,6 +21,7 @@
 // work is still needed for a big endian
 // implementation on power9.
 
+//go:build ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "go_asm.h"
index 6ebf0dee24b79601ebbb1056a95488286b35af8e..0f377f5a4c9e330d936d18dbd7efc501fe08197e 100644 (file)
@@ -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 mips64 || mips64le
 // +build mips64 mips64le
 
 #include "go_asm.h"
index e44440b5f9eebd774782f170a4ff47d1ffb0d1d5..bed015bbd6b5af3d4d54bafcaad3fc06d0b3c1bd 100644 (file)
@@ -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 mips || mipsle
 // +build mips mipsle
 
 #include "go_asm.h"
index 6e14e80af1341fe92bf32e67841d95a2ff3f677a..8e13c5a56e348674dc6c232534b043a95d74c9b5 100644 (file)
@@ -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 ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "go_asm.h"
index 93c712d784c14747d1f83a089e2ca514ff4f5033..0df5da1cc74d45b42b26940b4e03c8d8e8b7154b 100644 (file)
@@ -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 386 || amd64
 // +build 386 amd64
 
 #include "textflag.h"
index d0ea949fe6689c950d4fd1a12d875ee8ebdbf91a..acf2b06665a34239b17341a1f136ae9b2b08a6d4 100644 (file)
@@ -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 !math_big_pure_go
 // +build !math_big_pure_go
 
 #include "textflag.h"
index 61043ca2d97c491c8bd9591ae2f2fcdb45a7f0f1..59be952200f3c40d1ce684f2a5bfaa79e49614f8 100644 (file)
@@ -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 !math_big_pure_go
 // +build !math_big_pure_go
 
 #include "textflag.h"
index cbf7445e7abded24bca3fbbd2aa27ce896707852..f2872d80a1ad0573739020dd731884f5644be0ac 100644 (file)
@@ -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 !math_big_pure_go
 // +build !math_big_pure_go
 
 #include "textflag.h"
index 22357d088e4c9b9d179dcf22fb638be51350997b..7bfe08e7b7c3de4c04fc1c8f6160756d7d447a1c 100644 (file)
@@ -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 !math_big_pure_go
 // +build !math_big_pure_go
 
 #include "textflag.h"
index 804b9fe06edc26e9cdac916a06a0d9e631fc6186..4b5c502440f5f8e511444bcb83c55459690f5a54 100644 (file)
@@ -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 !math_big_pure_go,mips64 !math_big_pure_go,mips64le
+//go:build !math_big_pure_go && (mips64 || mips64le)
+// +build !math_big_pure_go
+// +build mips64 mips64le
 
 #include "textflag.h"
 
index efdecb80f3291edf7a75464ed9109924747c4aae..e72e6d6377e87f8fb0137dbdb9569ac776c49b3c 100644 (file)
@@ -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 !math_big_pure_go,mips !math_big_pure_go,mipsle
+//go:build !math_big_pure_go && (mips || mipsle)
+// +build !math_big_pure_go
+// +build mips mipsle
 
 #include "textflag.h"
 
index b299ccc2fb824cfbbd326f9e2ea79292d4ddad1b..68c6286494612924d8f58ebf4b5d40bdb3f6f2f7 100644 (file)
@@ -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 !math_big_pure_go,ppc64 !math_big_pure_go,ppc64le
+//go:build !math_big_pure_go && (ppc64 || ppc64le)
+// +build !math_big_pure_go
+// +build ppc64 ppc64le
 
 #include "textflag.h"
 
index a2f7666c7b9acfe023d3d628f2fb53b0b9130ce3..2e950ddd0f3732a90259df04e85efb7992cdad05 100644 (file)
@@ -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 !math_big_pure_go && riscv64
 // +build !math_big_pure_go,riscv64
 
 #include "textflag.h"
index e96480699af182f454d31ee61fc8981bfe3b6acf..ad822f76b39d1d4a839b6425093882387eb8360b 100644 (file)
@@ -2,7 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build !math_big_pure_go,s390x
+//go:build !math_big_pure_go
+// +build !math_big_pure_go
 
 #include "textflag.h"
 
index add106446909d6fc9fa0f9c24fee8efc4cde343f..e8605f1e15356dabf04e57950f442b0c8b5ac8b7 100644 (file)
@@ -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 !math_big_pure_go
 // +build !math_big_pure_go
 
 #include "textflag.h"
index 29b92a62c34789d0bf4d3d3cfab9a5aaefede0db..584c27e28f684bb439a1d91eb7cee9c5891eff51 100644 (file)
@@ -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 ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "textflag.h"
index caa435eef917a9a7c2f076c0e453050a5a1ee291..1303067661c351c37cf4a532fb2035baec05a038 100644 (file)
@@ -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 ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "textflag.h"
index c619c19ec22f33709152e036d7c4bf875c8668ae..291d4af39cf5b4dac7b91faa4e3e96de43bc33bd 100644 (file)
@@ -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 mips || mipsle
 // +build mips mipsle
 
 #include "textflag.h"
index 174b63e35a568d5095a10232b3f16cc4e901d8f8..c929da2159a24d38c8cd6c81f402f6f8379b7b8c 100644 (file)
@@ -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 ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "textflag.h"
index f223510c424e8b54fe5b9b2c7df47dae3ed38238..0dbdbc99ed66a9ad2a69176a069f19a5107dea56 100644 (file)
@@ -2,8 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build riscv64
-
 #include "textflag.h"
 
 // func archSqrt(x float64) float64
index ae661262cb4d9bec7053118b10610164e2f7c649..8d01c5fb7ed737c490a14a50ee81520ba4c8e21c 100644 (file)
@@ -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 mips64 || mips64le
 // +build mips64 mips64le
 
 #include "textflag.h"
index 47fef844a19a4eb5afadac019bec0ce837811a2d..6ea82331084248bff8f45d6953d625c794be865a 100644 (file)
@@ -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 mips || mipsle
 // +build mips mipsle
 
 #include "textflag.h"
index 010811c31a51f9f84ff81e849919ed490261bc56..d955e4110f8b789afaa0a90a3b25457a607bdf40 100644 (file)
@@ -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 ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "textflag.h"
index c3b57e472a2412187f3c103f94d8c7ef28ebf273..d4d22801055157c1a4079ccce2142b6cfc928ba4 100644 (file)
@@ -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 mips64 || mips64le
 // +build mips64 mips64le
 
 #include "go_asm.h"
index 1d828b03cfb1e2e59cedf43b51a274fc956ab157..ea7edf20cf9f84fc21b38f81e66afe001d3a2030 100644 (file)
@@ -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 mips || mipsle
 // +build mips mipsle
 
 #include "go_asm.h"
index 2c39b38912f3f3badbd19fc3381ab12593648c28..942cc14f17d044d8705ca4343a042139c2176204 100644 (file)
@@ -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 ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "go_asm.h"
index 6f42412502b753e75974c8949f25e222bd35867d..e2118e6a20b2538cbd0f0740316533837a8bed05 100644 (file)
@@ -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 mips64 || mips64le
 // +build mips64 mips64le
 
 #include "textflag.h"
index ed078a2d8a64a47e316d5605e66b5fe4477b232e..1eacd273b44154e06ff0b9cd19676d4d2e881757 100644 (file)
@@ -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 mips || mipsle
 // +build mips mipsle
 
 #include "textflag.h"
index 57f672f330144963aec60fc89ff06704621883d4..b63de2dbd311cd8396630938368ab93366f74a18 100644 (file)
@@ -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 ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "textflag.h"
index e51cdf3d1278d1161a1047b07a88d1bbf123a7a1..ba948071fa9cca1703cf18d1f04e46072f6d81bd 100644 (file)
@@ -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 mips64 || mips64le
 // +build mips64 mips64le
 
 #include "textflag.h"
index 1127c8beb486ceb47b0cfe7f20ebdfe4f5942183..fd5d78ef97abef3cfd1909e44d41c3c4f4a4918d 100644 (file)
@@ -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 mips || mipsle
 // +build mips mipsle
 
 #include "textflag.h"
index f4efc1e67d68f803c7f7677de47d52a7d326d609..9dec8d04ce12292bd5ed9ec1098d2ee82e7f2800 100644 (file)
@@ -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 ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "textflag.h"
index b4ddbb020f01da601118c9ea9c609d9c2e4e8fe5..fcd1d36ca84f8060c22489e69701e32494dd3252 100644 (file)
@@ -2,8 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build riscv64
-
 #include "textflag.h"
 
 // Called by C code generated by cmd/cgo.
index c4e04ccc9da59fa585fb7fb36330a9f8f5287721..a897d7fd9bf25e073f0eb5fd1bad22c0a7b35917 100644 (file)
@@ -2,6 +2,7 @@
 // Run go generate from src/runtime to update.
 // See mkduff.go for comments.
 
+//go:build mips64 || mips64le
 // +build mips64 mips64le
 
 #include "textflag.h"
index d6b89ba9401cee6a76622fc4c035b3d6458d7abd..d4e3b409d24b9d911e8f8ff332c6aec52a187427 100644 (file)
@@ -2,6 +2,7 @@
 // Run go generate from src/runtime to update.
 // See mkduff.go for comments.
 
+//go:build ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "textflag.h"
index 2751c6f80825d7614cde3e09d2c4b9980e23b365..fba668f94a8e5b710bad659248947276aab11300 100644 (file)
@@ -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 mips64 || mips64le
 // +build mips64 mips64le
 
 #include "textflag.h"
index 3f613214507e780893ce8f97cfec9f5fa3904647..c0835d66ed886acfbad9d82376c994676490097c 100644 (file)
@@ -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 mips || mipsle
 // +build mips mipsle
 
 #include "textflag.h"
index 37c8515d37eab0945c19b06e7946d258266f166d..dca26cb334a7c835f84de02983ed39972fababc9 100644 (file)
@@ -2,11 +2,11 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "textflag.h"
 
-
 // For more details about how various memory models are
 // enforced on POWER, the following paper provides more
 // details about how they enforce C/C++ like models. This
index 57568b2238dc995f8fbe7f9190614f7427c15ba2..04036ca9702da4ce1d25cb16a8f4dcdb64be398c 100644 (file)
@@ -2,7 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build !linux,arm
+//go:build !linux
+// +build !linux
 
 #include "textflag.h"
 
index 890fde341bc937c72d92d88a69c7d398d51a6723..13645fc7af849ba8f99f148b091a52bc9b49dcfe 100644 (file)
@@ -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 libfuzzer
 // +build libfuzzer
 
 #include "go_asm.h"
index 121673e0922a78358442a9455d60421709fe0abb..4ad8242804eb1179559b7f2670ce3cb23f00193c 100644 (file)
@@ -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 libfuzzer
 // +build libfuzzer
 
 #include "go_asm.h"
index d2ef17f7cee0a1f8ec3278b3af59f96a51f90797..046c3441198bf5e4c44b29fe524e8e50d9ca17ca 100644 (file)
@@ -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 !plan9
 // +build !plan9
 
 #include "go_asm.h"
index 5d2bebb901bfd94e7c49aa33ef609c8135a6639d..a10f57bd8cbe3bf16d4ad7496b5f5bd478c8fb2a 100644 (file)
@@ -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 !plan9
 // +build !plan9
 
 #include "go_asm.h"
index d7a3251e2046abf15ac9e487dfa6884ef4e714ac..bc037013fe774f504608757c023c14529c9ac330 100644 (file)
@@ -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 mips64 || mips64le
 // +build mips64 mips64le
 
 #include "go_asm.h"
index eb2a8a7219c6bbf0bc39064e5beef20cc0306573..3d21c3c414c2a0bfbc7abb53971055e20e6d1360 100644 (file)
@@ -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 mips || mipsle
 // +build mips mipsle
 
 #include "textflag.h"
index 751262089425430eeec3a7208972d4c01507236f..65639322b2a1cbb3872e16c530e4b35f8a0a36eb 100644 (file)
@@ -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 ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "textflag.h"
index d99546c633686a3f7e633ea44c169e3e9f07e0fd..1a43a1f724d7330f001c7fc5636356216ae8812c 100644 (file)
@@ -23,6 +23,7 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
+//go:build !plan9
 // +build !plan9
 
 #include "go_asm.h"
index f1e340359627fa929abbb57aafd2a00468687175..24c6529f58405471af326f95f9b2b311f1868df7 100644 (file)
@@ -23,6 +23,7 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
+//go:build !plan9
 // +build !plan9
 
 #include "go_asm.h"
index 8a1b88afba749de29456e130ae4b92cd4b0208bf..fef3c6be827f5644057d717f9fc702d22e877a61 100644 (file)
@@ -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 mips64 || mips64le
 // +build mips64 mips64le
 
 #include "textflag.h"
index 6c86558f8d2a1a47a99c90bad47a4a7615cb9246..cd02fc25c4b41aa680a6c430a9597c453348da14 100644 (file)
@@ -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 mips || mipsle
 // +build mips mipsle
 
 #include "textflag.h"
index dbd835506f6009ed876547262b2b44577263281d..fd16ad8129b3013010ffec54806304a3fc0949f8 100644 (file)
@@ -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 ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "textflag.h"
index 8632fe08a3d6f8fd2363f5a724facc2529a6297b..da191cc594c0de6daadd0dddca70070f38395341 100644 (file)
@@ -179,6 +179,7 @@ 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)
 }
@@ -202,6 +203,7 @@ 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)
 }
index 3a9e6cc47804509ba9ef69493fa2f79aca29534e..6c980540f5776019e82ccd5939775723edfd86e1 100644 (file)
@@ -123,6 +123,7 @@ func header(arch string) {
        fmt.Fprintf(out, "// Code generated by mkpreempt.go; DO NOT EDIT.\n\n")
        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")
index 669e9ca73f803babbfda2abc92d299c76bbb4487..1bb57a3b7e80b8edcb96adf646b20eb22dffa22c 100644 (file)
@@ -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 msan
 // +build msan
 
 #include "go_asm.h"
index f19906cfc838f8b1f7bf25d19d6cd7b353aaaad3..93ade8dd8970f88be503a60a9759165a2f9f267a 100644 (file)
@@ -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 msan
 // +build msan
 
 #include "go_asm.h"
index 0d0c157c36c1f0ae8eddf196f77a9000f258a3c3..b755425bc5d3275e6c7700d63f41e35e4120c20a 100644 (file)
@@ -1,5 +1,6 @@
 // Code generated by mkpreempt.go; DO NOT EDIT.
 
+//go:build mips64 || mips64le
 // +build mips64 mips64le
 
 #include "go_asm.h"
index 86d3a918d330a77670b546388424710802d20bf8..c1bff60859610ce4e333d4d8b097fb026011393a 100644 (file)
@@ -1,5 +1,6 @@
 // Code generated by mkpreempt.go; DO NOT EDIT.
 
+//go:build mips || mipsle
 // +build mips mipsle
 
 #include "go_asm.h"
index 90634386dbf0ed285f9fbfff0801e6674b5be393..70bd91982bfa89eff10177aeef5c66eed7f516eb 100644 (file)
@@ -1,5 +1,6 @@
 // Code generated by mkpreempt.go; DO NOT EDIT.
 
+//go:build ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "go_asm.h"
index 58a919efe8d977032aec25f4fbabb5282d6ddefb..8d4813eadddd5e68a9303a2658d7c7920c22d056 100644 (file)
@@ -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 race
 // +build race
 
 #include "go_asm.h"
index 82e3caadc8f21b961aeb877bd70b85d11b2fd7d1..c6d5b91edc0f3ee8a7bd29f081b9f78d639d46ad 100644 (file)
@@ -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 race
 // +build race
 
 #include "go_asm.h"
index 069e4d86dd4545bf61f5db97cbbe786bebaccde3..963e57099c9c4c3b0ca283fe6172b79a5e00cc7b 100644 (file)
@@ -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 race
 // +build race
 
 #include "go_asm.h"
index 55506755df2b601e2638e2c32ef73d9e869fa137..fabd8570b57970f599aef2f7cb2524c8124f0f85 100644 (file)
@@ -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
 
index 74b8f50b73f12daeb507c77fffae5647295a2fad..9f5842b51a28b3145cf1be2dcbc6bb931aaf9499 100644 (file)
@@ -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
 
index a56d043f4251ef4a0eef26d44b99860224fe3f45..c171c191c0e5ecf4a21e4c6271a20ba5fb3051d9 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build aix
-// +build ppc64 ppc64le
-
 //
 // System calls and other sys.stuff for ppc64, Aix
 //
index 0206cb88bd463bf64849586ea3295351b974253e..e18d29144563fed07dfecfcb859c5f1257de0782 100644 (file)
@@ -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
 
index d5317d39570b32b52b40d6c6f1f4b67f6d70263c..b3970be9cf8f746a0f6cf2e2eb5bf212009b68be 100644 (file)
@@ -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
 
index 46387288d53d5c14a66ad728efec2d10bb8328d5..05b5916db418fa34be3ee42401e87842b9d0821c 100644 (file)
@@ -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
 
index e42de8deb4f9f7389767c7c0c3fddc1fac7b2db3..879caac9e16743c227bbcfe5cf06a5538a44ce60 100644 (file)
@@ -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 !windows
 // +build !windows
 
 #include "go_asm.h"
index 888c0efec6ac12ed33815335244963d90125ce99..779d64ba31ab248a617cefca70db48eb0c8a2a2d 100644 (file)
@@ -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 mips64 || mips64le
 // +build mips64 mips64le
 
 #include "go_asm.h"
index d2ffcd954c908f00b127d72c87b35f86ab79ebab..ada8d06a9e743b93d74ade93f7ba5d7171faf64b 100644 (file)
@@ -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 mips || mipsle
 // +build mips mipsle
 
 #include "go_asm.h"
index 25d796fcc6e9f8b626346a7e7ea0eed650d7d223..7e935d0eb295919bbcf2dc10137060fc8ae7f2c8 100644 (file)
@@ -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 ppc64 || ppc64le
 // +build ppc64 ppc64le
 
 #include "go_asm.h"
index 8411c98412d189a388c2cb0edd422f3dff68c9a0..a7a787d8f6d694579f7e7827f7838f74b67ce6df 100644 (file)
@@ -22,7 +22,9 @@ 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
 // called from the start, instead runtime·compilecallback
index 37ffb38aca5b2646c806b256954fcfdae0f31594..e451c2b9d0508bb5d46deaf3ff4c17a78a936ef5 100644 (file)
@@ -1,6 +1,8 @@
 // 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
 // called from the start, instead runtime·compilecallback
index f86726f3a1a2fdac21397196ecc2de7e4d79d9c5..7b8c9b9430ef402c4df820b67a08a0aad281efad 100644 (file)
@@ -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 !race
 // +build !race
 
 #include "textflag.h"
index fd6ca22700c70ca5f8980010b480580f4e2ed02d..0866487cc71a9035eef7bc2958d82bd3e24dfc17 100644 (file)
@@ -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 race
 // +build race
 
 // This file is here only to allow external functions.