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

This is similar to reverting CL 712740 however unlike reverting:
- it fixes the build tags so that 32 & 64 bits
  constraints are complement of each other
- it applies the same changes to os_linux_settime32.go and
  os_linux_settime64.go since the four files are the exact same
  fix of the same bug to different parts of the codebase.
  It does not make sense for them to be different.

Change-Id: I08cdcb07e837a5e06ee6f04b7868a4c57b07dd56
Reviewed-on: https://go-review.googlesource.com/c/go/+/714080
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/runtime/os_linux_futex32.go
src/runtime/os_linux_futex64.go
src/runtime/os_linux_settime32.go
src/runtime/os_linux_settime64.go

index dbbd86cb3937e9b03a1588c86da8ecb714cfa6d5..c5cffa24d155ac884cd1cd6ec15fbaae703568ad 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 linux && (386 || arm || mips || mipsle)
+//go:build linux && (386 || arm || mips || mipsle || (gccgo && (ppc || s390)))
 
 package runtime
 
index ce0b08c7ba74059fe964ab6e275433c34e491e02..2448e30cf1b0009861468ebd1275ca2c9bff801a 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 linux && !(386 || arm || mips || mipsle)
+//go:build linux && !(386 || arm || mips || mipsle || (gccgo && (ppc || s390)))
 
 package runtime
 
index 30f95455bfe2ad23acfb2627e1f4802b6ee95760..e6c5d9f95c0ee0ded18c9e7d3a6ce162eaedb753 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 linux && (386 || arm || mips || mipsle)
+//go:build linux && (386 || arm || mips || mipsle || (gccgo && (ppc || s390)))
 
 package runtime
 
index 60650da33fb9903bb7fac16fdfe98aca4097786f..dfacf5612d8610b8b3e75475a387acbcb1fda790 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 linux && !(386 || arm || mips || mipsle)
+//go:build linux && !(386 || arm || mips || mipsle || (gccgo && (ppc || s390)))
 
 package runtime