Skip to content

Commit 7e72d38

Browse files
wdvxdr1123mengzhuo
authored andcommitted
internal/abi, internal/buildcfg: always enable register ABI on riscv64
In Go 1.19, we develop register ABI for riscv64, enabled by default as a GOEXPERIMENT. We can turn it on all the time in Go 1.20. Change-Id: Ie8e2ac8b8bd3ebddb0dc6d58a5599547fb440e03 Reviewed-on: https://go-review.googlesource.com/c/go/+/443555 Run-TryBot: Wayne Zuo <[email protected]> Reviewed-by: Bryan Mills <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Cherry Mui <[email protected]>
1 parent 2952fe4 commit 7e72d38

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
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 && !ppc64 && !ppc64le
5+
//go:build !goexperiment.regabiargs && !amd64 && !arm64 && !ppc64 && !ppc64le && !riscv64
66

77
package abi
88

src/internal/abi/abi_riscv64.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
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
6-
75
package abi
86

97
const (

src/internal/buildcfg/exp.go

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

7270
baseline := goexperiment.Flags{

0 commit comments

Comments
 (0)