]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/work: update minimum supported s390x version on go
authorSrinivas Pokala <Pokala.Srinivas@ibm.com>
Mon, 21 Apr 2025 07:42:45 +0000 (09:42 +0200)
committerKeith Randall <khr@google.com>
Fri, 16 May 2025 16:15:37 +0000 (09:15 -0700)
This updates cgo support for s390x changing from z196 to z13, as
z13 is the minimum machine level running on go for s390x.

Change-Id: I1a102294b2108c35ddb1428bf287ce83debaeac8
Reviewed-on: https://go-review.googlesource.com/c/go/+/666995
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/cmd/go/internal/work/exec.go

index 6fc865421d76a9124cc68616438dcee7d452d676..63fd13f7544db3ed9f3bf3b89956f69d9a5878f5 100644 (file)
@@ -2587,7 +2587,8 @@ func (b *Builder) gccArchArgs() []string {
        case "arm":
                return []string{"-marm"} // not thumb
        case "s390x":
-               return []string{"-m64", "-march=z196"}
+               // minimum supported s390x version on Go is z13
+               return []string{"-m64", "-march=z13"}
        case "mips64", "mips64le":
                args := []string{"-mabi=64"}
                if cfg.GOMIPS64 == "hardfloat" {