Skip to content

Commit 0afbeb5

Browse files
committed
runtime: add ppc and s390 to linux 32 bits syscall build constraints for gccgo
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 <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 7b506d1 commit 0afbeb5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/runtime/os_linux_futex32.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build linux && (386 || arm || mips || mipsle)
5+
//go:build linux && (386 || arm || mips || mipsle || (gccgo && (ppc || s390)))
66

77
package runtime
88

src/runtime/os_linux_futex64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build linux && !(386 || arm || mips || mipsle)
5+
//go:build linux && !(386 || arm || mips || mipsle || (gccgo && (ppc || s390)))
66

77
package runtime
88

src/runtime/os_linux_settime32.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build linux && (386 || arm || mips || mipsle)
5+
//go:build linux && (386 || arm || mips || mipsle || (gccgo && (ppc || s390)))
66

77
package runtime
88

src/runtime/os_linux_settime64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build linux && !(386 || arm || mips || mipsle)
5+
//go:build linux && !(386 || arm || mips || mipsle || (gccgo && (ppc || s390)))
66

77
package runtime
88

0 commit comments

Comments
 (0)