src/cmd/internal/notsha256/sha256block_386.s | 3 +++ src/cmd/internal/notsha256/sha256block_amd64.go | 3 +++ src/cmd/internal/notsha256/sha256block_amd64.s | 3 +++ src/cmd/internal/notsha256/sha256block_decl.go | 3 ++- src/cmd/internal/notsha256/sha256block_generic.go | 4 ++-- src/cmd/internal/notsha256/sha256block_ppc64x.s | 3 ++- diff --git a/src/cmd/internal/notsha256/sha256block_386.s b/src/cmd/internal/notsha256/sha256block_386.s index 086a0ab25c88c68bcd819b9a68cccd51663a911e..f2ba7d7a9b7a5b22abc983cef22aeb68eb580eef 100644 --- a/src/cmd/internal/notsha256/sha256block_386.s +++ b/src/cmd/internal/notsha256/sha256block_386.s @@ -2,6 +2,9 @@ // Copyright 2013 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 !purego +// +build !purego + // SHA256 block routine. See sha256block.go for Go equivalent. // // The algorithm is detailed in FIPS 180-4: diff --git a/src/cmd/internal/notsha256/sha256block_amd64.go b/src/cmd/internal/notsha256/sha256block_amd64.go index 676c4f70d9a8f8fdd32e3eb6043d28702aaec05f..27b84a86b129797a9205c491ef2174b61d86f1c8 100644 --- a/src/cmd/internal/notsha256/sha256block_amd64.go +++ b/src/cmd/internal/notsha256/sha256block_amd64.go @@ -2,6 +2,9 @@ // Copyright 2017 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 !purego +// +build !purego + package notsha256 var useAVX2 = false diff --git a/src/cmd/internal/notsha256/sha256block_amd64.s b/src/cmd/internal/notsha256/sha256block_amd64.s index b2ae7c5fc9c213f1b0b10f50c3166d475b2ef76b..36ea74451d15e77e10a617e8c5f3c69ae54c3244 100644 --- a/src/cmd/internal/notsha256/sha256block_amd64.s +++ b/src/cmd/internal/notsha256/sha256block_amd64.s @@ -2,6 +2,9 @@ // Copyright 2013 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 !purego +// +build !purego + #include "textflag.h" // SHA256 block routine. See sha256block.go for Go equivalent. diff --git a/src/cmd/internal/notsha256/sha256block_decl.go b/src/cmd/internal/notsha256/sha256block_decl.go index 5a822ee479aece0fa39a52d623c7ae47c9778f58..631f1a4a1b046a2d9e9b5a9a590247cc89b75b13 100644 --- a/src/cmd/internal/notsha256/sha256block_decl.go +++ b/src/cmd/internal/notsha256/sha256block_decl.go @@ -2,7 +2,8 @@ // Copyright 2013 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 386 || amd64 || ppc64le || ppc64 +//go:build !purego && (386 || amd64 || ppc64le || ppc64) +// +build !purego // +build 386 amd64 ppc64le ppc64 package notsha256 diff --git a/src/cmd/internal/notsha256/sha256block_generic.go b/src/cmd/internal/notsha256/sha256block_generic.go index 20ae8413838b4e888773aa226475922e4aeb7b5f..2664722bc2f7a41a4742fe271161bbd2a8205ce9 100644 --- a/src/cmd/internal/notsha256/sha256block_generic.go +++ b/src/cmd/internal/notsha256/sha256block_generic.go @@ -2,8 +2,8 @@ // 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 !amd64 && !386 && !ppc64le && !ppc64 -// +build !amd64,!386,!ppc64le,!ppc64 +//go:build purego || (!amd64 && !386 && !ppc64le && !ppc64) +// +build purego !amd64,!386,!ppc64le,!ppc64 package notsha256 diff --git a/src/cmd/internal/notsha256/sha256block_ppc64x.s b/src/cmd/internal/notsha256/sha256block_ppc64x.s index 6e0f1d61336f37c76083082e488b13fcceab4b17..e907d3b71beca7bef8951b2ad6a5dddbd9ebc55c 100644 --- a/src/cmd/internal/notsha256/sha256block_ppc64x.s +++ b/src/cmd/internal/notsha256/sha256block_ppc64x.s @@ -8,7 +8,8 @@ // it must maintain compatibility with the oldest supported // bootstrap toolchain. // -//go:build ppc64 || ppc64le +//go:build !purego && (ppc64 || ppc64le) +// +build !purego // +build ppc64 ppc64le // Based on CRYPTOGAMS code with the following comment: