mirror of
https://github.com/golang/go
synced 2024-11-26 22:11:25 -07:00
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 <wdvxdr@golangcn.org> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
parent
2952fe4f16
commit
7e72d384d6
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !goexperiment.regabiargs && !amd64 && !arm64 && !ppc64 && !ppc64le
|
//go:build !goexperiment.regabiargs && !amd64 && !arm64 && !ppc64 && !ppc64le && !riscv64
|
||||||
|
|
||||||
package abi
|
package abi
|
||||||
|
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build goexperiment.regabiargs
|
|
||||||
|
|
||||||
package abi
|
package abi
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -62,11 +62,9 @@ func ParseGOEXPERIMENT(goos, goarch, goexp string) (*ExperimentFlags, error) {
|
|||||||
// always on.
|
// always on.
|
||||||
var regabiSupported, regabiAlwaysOn bool
|
var regabiSupported, regabiAlwaysOn bool
|
||||||
switch goarch {
|
switch goarch {
|
||||||
case "amd64", "arm64", "ppc64le", "ppc64":
|
case "amd64", "arm64", "ppc64le", "ppc64", "riscv64":
|
||||||
regabiAlwaysOn = true
|
regabiAlwaysOn = true
|
||||||
regabiSupported = true
|
regabiSupported = true
|
||||||
case "riscv64":
|
|
||||||
regabiSupported = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
baseline := goexperiment.Flags{
|
baseline := goexperiment.Flags{
|
||||||
|
Loading…
Reference in New Issue
Block a user