]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: add ppc and s390 to 32 build constraints for gccgo
authorJorropo <jorropo.pgm@gmail.com>
Thu, 23 Oct 2025 08:55:56 +0000 (10:55 +0200)
committerJorropo <jorropo.pgm@gmail.com>
Sat, 25 Oct 2025 05:48:56 +0000 (22:48 -0700)
Theses are not supported by the go compiler but it may helps porting to gccgo.

I have no idea if this change is correct, but it is weird that
os_linux32.go and os_linux64.go should have ppc & s390 but not all other
files gated to 32bits in the same package.

Change-Id: I0bb70cdb88c19096386320d02d546942263e009d
Reviewed-on: https://go-review.googlesource.com/c/go/+/714082
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Jorropo <jorropo.pgm@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/runtime/hash32.go
src/runtime/mpagealloc_32bit.go
src/runtime/panic32.go
src/runtime/tagptr_32bit.go

index 8589893127daacf44e09c0f387cda5ed8f41ed87..206a308f12e25af687026c72e55fb4e4733a196e 100644 (file)
@@ -5,7 +5,7 @@
 // Hashing algorithm inspired by
 // wyhash: https://github.com/wangyi-fudan/wyhash/blob/ceb019b530e2c1c14d70b79bfa2bc49de7d95bc1/Modern%20Non-Cryptographic%20Hash%20Function%20and%20Pseudorandom%20Number%20Generator.pdf
 
-//go:build 386 || arm || mips || mipsle || wasm
+//go:build 386 || arm || mips || mipsle || wasm || (gccgo && (ppc || s390))
 
 package runtime
 
index 4e99be1c2aba372117640a4072d81a7a0c3dd7ef..44c7beecbc37cca48e1e9bc30f72725aa6c6d52b 100644 (file)
@@ -2,7 +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 || arm || mips || mipsle || wasm
+//go:build 386 || arm || mips || mipsle || wasm || (gccgo && (ppc || s390))
 
 // wasm is a treated as a 32-bit architecture for the purposes of the page
 // allocator, even though it has 64-bit pointers. This is because any wasm
index 9dd4c0eb2e8aefc91606fdb6793d55f38f23b887..7abc9f595bdf7d0556b9a607cf9fb09f081a0286 100644 (file)
@@ -2,7 +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 || arm || mips || mipsle
+//go:build 386 || arm || mips || mipsle || (gccgo && (ppc || s390))
 
 package runtime
 
index d846904130daae0eb57a6674a34fba0e6b22ac66..b2175df9130ad0e61f668aa7378a49a0f21ef4ce 100644 (file)
@@ -2,7 +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 || arm || mips || mipsle
+//go:build 386 || arm || mips || mipsle || (gccgo && (ppc || s390))
 
 package runtime