aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/internal/cpu/cpu_other.go
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/internal/cpu/cpu_other.go
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/internal/cpu/cpu_other.go')
-rw-r--r--libgo/go/internal/cpu/cpu_other.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/libgo/go/internal/cpu/cpu_other.go b/libgo/go/internal/cpu/cpu_other.go
new file mode 100644
index 0000000..d0f1f2e
--- /dev/null
+++ b/libgo/go/internal/cpu/cpu_other.go
@@ -0,0 +1,21 @@
+// 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 !mips64
+// +build !mips64le
+// +build !ppc
+// +build !ppc64
+// +build !ppc64le
+// +build !riscv64
+// +build !s390x
+
+package cpu
+
+func doinit() {
+}