aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stubs_mipsx.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2019-05-08 13:59:48 -0400
committerRuss Cox <rsc@golang.org>2019-05-09 21:13:22 +0000
commit49f62af790c02c389d34a24227a17ddd4b4db94a (patch)
treee86c484a2cf0b20b88a89ce1a682e4a0727274a8 /src/runtime/stubs_mipsx.go
parent1ea76443ba1825f03e187157b3f58560c52609b9 (diff)
downloadgo-49f62af790c02c389d34a24227a17ddd4b4db94a.tar.gz
go-49f62af790c02c389d34a24227a17ddd4b4db94a.zip
runtime: fix vet complaints for linux/arm64, linux/mips*, linux/ppc64*, linux/s390x
Working toward making the tree vet-safe instead of having so many exceptions in cmd/vet/all/whitelist. This CL makes "go vet -unsafeptr=false runtime" happy for these GOOS/GOARCHes, except for an unresolved complaint on mips/mipsle that is a bug in vet, while keeping "GO_BUILDER_NAME=misc-vetall go tool dist test" happy too. For #31916. Change-Id: I6ef7e982a2fdbbfbc22cee876ca37ac54d8109e5 Reviewed-on: https://go-review.googlesource.com/c/go/+/176102 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/stubs_mipsx.go')
-rw-r--r--src/runtime/stubs_mipsx.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/runtime/stubs_mipsx.go b/src/runtime/stubs_mipsx.go
new file mode 100644
index 0000000000..707b295f7a
--- /dev/null
+++ b/src/runtime/stubs_mipsx.go
@@ -0,0 +1,11 @@
+// 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 mips mipsle
+
+package runtime
+
+// Called from assembly only; declared for go vet.
+func load_g()
+func save_g()