Skip to content

Commit b810a74

Browse files
committed
internal/abi, internal/buildcfg: always enable register ABI on PPC64
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 <[email protected]> Run-TryBot: Cherry Mui <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
1 parent 0aaa555 commit b810a74

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/internal/abi/abi_generic.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 !goexperiment.regabiargs && !amd64 && !arm64
5+
//go:build !goexperiment.regabiargs && !amd64 && !arm64 && !ppc64 && !ppc64le
66

77
package abi
88

src/internal/abi/abi_ppc64x.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 goexperiment.regabiargs && (ppc64 || ppc64le)
5+
//go:build ppc64 || ppc64le
66

77
package abi
88

src/internal/buildcfg/exp.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,8 @@ func ParseGOEXPERIMENT(goos, goarch, goexp string) (*ExperimentFlags, error) {
6262
// always on.
6363
var regabiSupported, regabiAlwaysOn bool
6464
switch goarch {
65-
case "amd64", "arm64":
65+
case "amd64", "arm64", "ppc64le", "ppc64":
6666
regabiAlwaysOn = true
67-
fallthrough
68-
case "ppc64le", "ppc64":
6967
regabiSupported = true
7068
}
7169

0 commit comments

Comments
 (0)