aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2020-06-15 21:49:13 +0200
committerIan Lance Taylor <iant@golang.org>2020-06-15 14:20:07 -0700
commit882af4350b427b9354a152f680d5ae84dc3c8041 (patch)
treefc8ae3cc88bec330932b995f4e67a6b44a818f5c /libgo
parent47ad09cb086715182eff01ef3da2fb7d79b0a396 (diff)
downloadgcc-882af4350b427b9354a152f680d5ae84dc3c8041.zip
gcc-882af4350b427b9354a152f680d5ae84dc3c8041.tar.gz
gcc-882af4350b427b9354a152f680d5ae84dc3c8041.tar.bz2
libgo: update x/sys/cpu to add all GOARCHes supported by gccgo
CL 237897 added additional GOARCHes supported by gccgo to x/sys/cpu. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/238038
Diffstat (limited to 'libgo')
-rw-r--r--libgo/go/golang.org/x/sys/cpu/byteorder.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/libgo/go/golang.org/x/sys/cpu/byteorder.go b/libgo/go/golang.org/x/sys/cpu/byteorder.go
index da6b9e4..74116e9 100644
--- a/libgo/go/golang.org/x/sys/cpu/byteorder.go
+++ b/libgo/go/golang.org/x/sys/cpu/byteorder.go
@@ -14,15 +14,20 @@ import (
func hostByteOrder() binary.ByteOrder {
switch runtime.GOARCH {
case "386", "amd64", "amd64p32",
+ "alpha",
"arm", "arm64",
"mipsle", "mips64le", "mips64p32le",
+ "nios2",
"ppc64le",
- "riscv", "riscv64":
+ "riscv", "riscv64",
+ "sh":
return binary.LittleEndian
case "armbe", "arm64be",
+ "m68k",
"mips", "mips64", "mips64p32",
"ppc", "ppc64",
"s390", "s390x",
+ "shbe",
"sparc", "sparc64":
return binary.BigEndian
}