aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/golang.org
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-12-31 11:23:30 -0800
committerIan Lance Taylor <iant@golang.org>2021-01-01 15:10:06 -0800
commitabca6705969b59edae86f11233f9d207cbdd1e06 (patch)
tree29e98635d93a1d559f1c07cc7a0d025c3520a56b /libgo/go/golang.org
parentd816b0c144d15e6570eb5b124b9f3ccbe3d40082 (diff)
downloadgcc-abca6705969b59edae86f11233f9d207cbdd1e06.zip
gcc-abca6705969b59edae86f11233f9d207cbdd1e06.tar.gz
gcc-abca6705969b59edae86f11233f9d207cbdd1e06.tar.bz2
internal/cpu, golang.org/x/sys/cpu: support other GOARCH values
Add support (mostly dummy support) for GOARCH values supported by gofrontend but not gc. Fix PPC handling. Fixes https://gcc.gnu.org/PR98493 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/280932
Diffstat (limited to 'libgo/go/golang.org')
-rw-r--r--libgo/go/golang.org/x/sys/cpu/cpu_other.go23
-rw-r--r--libgo/go/golang.org/x/sys/cpu/cpu_other_arch.go20
-rw-r--r--libgo/go/golang.org/x/sys/cpu/cpu_riscv.go2
3 files changed, 45 insertions, 0 deletions
diff --git a/libgo/go/golang.org/x/sys/cpu/cpu_other.go b/libgo/go/golang.org/x/sys/cpu/cpu_other.go
new file mode 100644
index 0000000..d8bb811
--- /dev/null
+++ b/libgo/go/golang.org/x/sys/cpu/cpu_other.go
@@ -0,0 +1,23 @@
+// Copyright 2020 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build !386
+// +build !amd64
+// +build !amd64p32
+// +build !arm
+// +build !arm64
+// +build !mips
+// +build !mipsle
+// +build !mips64
+// +build !mips64le
+// +build !ppc64
+// +build !ppc64le
+// +build !riscv
+// +build !riscv64
+// +build !s390x
+// +build !wasm
+
+package cpu
+
+func initOptions() {}
diff --git a/libgo/go/golang.org/x/sys/cpu/cpu_other_arch.go b/libgo/go/golang.org/x/sys/cpu/cpu_other_arch.go
new file mode 100644
index 0000000..aef0a82
--- /dev/null
+++ b/libgo/go/golang.org/x/sys/cpu/cpu_other_arch.go
@@ -0,0 +1,20 @@
+// Copyright 2020 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build !aix
+// +build !linux
+// +build !zos
+
+// +build !386
+// +build !amd64
+// +build !amd64p32
+// +build !arm
+// +build !arm64
+// +build !mips64
+// +build !mips64le
+// +build !wasm
+
+package cpu
+
+func archInit() {}
diff --git a/libgo/go/golang.org/x/sys/cpu/cpu_riscv.go b/libgo/go/golang.org/x/sys/cpu/cpu_riscv.go
index 891cb98..e229457 100644
--- a/libgo/go/golang.org/x/sys/cpu/cpu_riscv.go
+++ b/libgo/go/golang.org/x/sys/cpu/cpu_riscv.go
@@ -5,3 +5,5 @@
// +build riscv
package cpu
+
+func initOptions() {}