This libgo patch by Tobias Klauser updates the x/sys/cpu package to
add all GOARCH values supported by gccgo.  This brings in
https://golang.org/cl/237897 from the external x/sys/cpu repo.
Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu.  Committed
to mainline.

Ian
882af4350b427b9354a152f680d5ae84dc3c8041
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index 9a33735b9c7..fa3764891fb 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@
-925d115397e7ec663f669ee5ac31b6dfccea5724
+d4dade353648eae4a1eaa1acd3e4ce1f7180a913
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
diff --git a/libgo/go/golang.org/x/sys/cpu/byteorder.go 
b/libgo/go/golang.org/x/sys/cpu/byteorder.go
index da6b9e4363d..74116e97abb 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
        }

Reply via email to