summaryrefslogtreecommitdiff
path: root/libgo/go/golang.org/x
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-09-11 14:06:05 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-09-11 14:06:05 +0000
commitdebae5232b81f4f0adcdc25ad8c8d2645a6ea376 (patch)
tree752ae3fddd037e55ad820027b57ee20d3a346a20 /libgo/go/golang.org/x
parentd694576e174d95b7f6066d924715691c55824f30 (diff)
downloadgcc-debae5232b81f4f0adcdc25ad8c8d2645a6ea376.tar.gz
golang.org/x/sys/cpu: define doinit when needed
Should fix the build on riscv64 and other systems. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/194641 From-SVN: r275650
Diffstat (limited to 'libgo/go/golang.org/x')
-rw-r--r--libgo/go/golang.org/x/sys/cpu/cpu_linux_other.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/libgo/go/golang.org/x/sys/cpu/cpu_linux_other.go b/libgo/go/golang.org/x/sys/cpu/cpu_linux_other.go
new file mode 100644
index 00000000000..6e8f9fe1920
--- /dev/null
+++ b/libgo/go/golang.org/x/sys/cpu/cpu_linux_other.go
@@ -0,0 +1,9 @@
+// Copyright 2019 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 !amd64,!amd64p32,!386,!arm64,!ppc64,!ppc64le,!s390x
+
+package cpu
+
+func doinit() {}