]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/notsha256: add purego tag as needed
authorIan Lance Taylor <iant@golang.org>
Sun, 3 Jul 2022 20:34:47 +0000 (13:34 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 6 Jul 2022 16:39:07 +0000 (16:39 +0000)
This permits building the package with gccgo, when using gccgo
as a bootstrap compiler.

Fixes #53662

Change-Id: Ic7ae9323ec5954e9306a32e1160e9aa1ed3aa202
Reviewed-on: https://go-review.googlesource.com/c/go/+/415935
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/internal/notsha256/sha256block_386.s
src/cmd/internal/notsha256/sha256block_amd64.go
src/cmd/internal/notsha256/sha256block_amd64.s
src/cmd/internal/notsha256/sha256block_decl.go
src/cmd/internal/notsha256/sha256block_generic.go
src/cmd/internal/notsha256/sha256block_ppc64x.s

index 086a0ab25c88c68bcd819b9a68cccd51663a911e..f2ba7d7a9b7a5b22abc983cef22aeb68eb580eef 100644 (file)
@@ -2,6 +2,9 @@
 // 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:
index 676c4f70d9a8f8fdd32e3eb6043d28702aaec05f..27b84a86b129797a9205c491ef2174b61d86f1c8 100644 (file)
@@ -2,6 +2,9 @@
 // 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
index b2ae7c5fc9c213f1b0b10f50c3166d475b2ef76b..36ea74451d15e77e10a617e8c5f3c69ae54c3244 100644 (file)
@@ -2,6 +2,9 @@
 // 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.
index 5a822ee479aece0fa39a52d623c7ae47c9778f58..631f1a4a1b046a2d9e9b5a9a590247cc89b75b13 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.
 
-//go:build 386 || amd64 || ppc64le || ppc64
+//go:build !purego && (386 || amd64 || ppc64le || ppc64)
+// +build !purego
 // +build 386 amd64 ppc64le ppc64
 
 package notsha256
index 20ae8413838b4e888773aa226475922e4aeb7b5f..2664722bc2f7a41a4742fe271161bbd2a8205ce9 100644 (file)
@@ -2,8 +2,8 @@
 // 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
 
index 6e0f1d61336f37c76083082e488b13fcceab4b17..e907d3b71beca7bef8951b2ad6a5dddbd9ebc55c 100644 (file)
@@ -8,7 +8,8 @@
 // bootstrap toolchain.
 //
 
-//go:build ppc64 || ppc64le
+//go:build !purego && (ppc64 || ppc64le)
+// +build !purego
 // +build ppc64 ppc64le
 
 // Based on CRYPTOGAMS code with the following comment: