]> Cypherpunks repositories - gostls13.git/commitdiff
internal/abi, internal/buildcfg: always enable register ABI on loong64
authorGuoqi Chen <chenguoqi@loongson.cn>
Wed, 30 Aug 2023 09:08:22 +0000 (17:08 +0800)
committerCherry Mui <cherryyz@google.com>
Mon, 15 Apr 2024 17:38:52 +0000 (17:38 +0000)
Change-Id: Ia3a31556c8d355eb6bdb42d3b3c8bc6b37311ed9
Reviewed-on: https://go-review.googlesource.com/c/go/+/525575
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Meidan Li <limeidan@loongson.cn>
Reviewed-by: sophie zhao <zhaoxiaolin@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/internal/abi/abi_generic.go
src/internal/abi/abi_loong64.go
src/internal/buildcfg/exp.go

index 76ef2e28986605d1deeb778ba3faf047ed2d1eda..a08d3208d4ecc52bec3c7895e901ce4667e35285 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 && !ppc64 && !ppc64le && !riscv64
+//go:build !goexperiment.regabiargs && !amd64 && !arm64 && !loong64 && !ppc64 && !ppc64le && !riscv64
 
 package abi
 
index c2306ae8d8831e45e9b0a2b0b36cae4e4278bb4e..10ad89815b703ba925c6364051b2c118d00396a5 100644 (file)
@@ -2,8 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build goexperiment.regabiargs
-
 package abi
 
 const (
index 0f29233fb37a060b1e286373444eacff72ed97a2..7c7cefba7b2a6fa872073610129e40b14be93b0d 100644 (file)
@@ -62,11 +62,9 @@ func ParseGOEXPERIMENT(goos, goarch, goexp string) (*ExperimentFlags, error) {
        // always on.
        var regabiSupported, regabiAlwaysOn bool
        switch goarch {
-       case "amd64", "arm64", "ppc64le", "ppc64", "riscv64":
+       case "amd64", "arm64", "loong64", "ppc64le", "ppc64", "riscv64":
                regabiAlwaysOn = true
                regabiSupported = true
-       case "loong64":
-               regabiSupported = true
        }
 
        baseline := goexperiment.Flags{