]> Cypherpunks repositories - gostls13.git/commitdiff
internal/abi, internal/buildcfg: always enable register ABI on PPC64
authorCherry Mui <cherryyz@google.com>
Fri, 18 Mar 2022 22:23:44 +0000 (18:23 -0400)
committerCherry Mui <cherryyz@google.com>
Mon, 21 Mar 2022 18:28:30 +0000 (18:28 +0000)
In last cycle we developed register ABI for ARM64, enabled by
default as a GOEXPERIMENT. This cycle we turn it on all the time.
Later CLs will clean up fallback code.

Change-Id: Idac4dcff634791cbc3d30988052ecd742b55ab8b
Reviewed-on: https://go-review.googlesource.com/c/go/+/394214
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/internal/abi/abi_generic.go
src/internal/abi/abi_ppc64x.go
src/internal/buildcfg/exp.go

index bc8483b4f93ee580059ef3199d8f2979653e98fb..d5803e70d2b310cf11d1b8eb898b4bd49f6f3158 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 !goexperiment.regabiargs && !amd64 && !arm64
+//go:build !goexperiment.regabiargs && !amd64 && !arm64 && !ppc64 && !ppc64le
 
 package abi
 
index d51fb49bea2af8b20a7c60148e8ebb55c0f37159..73416d74d64a21553e0c2d06d558d3f56cb2d35f 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 goexperiment.regabiargs && (ppc64 || ppc64le)
+//go:build ppc64 || ppc64le
 
 package abi
 
index b2bf9b2c832a8c85fbae11c420242764aacb8665..6b770558fdddcf25845e9de855e9ad82905601ed 100644 (file)
@@ -62,10 +62,8 @@ func ParseGOEXPERIMENT(goos, goarch, goexp string) (*ExperimentFlags, error) {
        // always on.
        var regabiSupported, regabiAlwaysOn bool
        switch goarch {
-       case "amd64", "arm64":
+       case "amd64", "arm64", "ppc64le", "ppc64":
                regabiAlwaysOn = true
-               fallthrough
-       case "ppc64le", "ppc64":
                regabiSupported = true
        }