diff options
author | Russ Cox <rsc@golang.org> | 2019-05-08 14:56:48 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2019-05-09 21:13:23 +0000 |
commit | 60f67631a6c9e75ffd2829fcca56ac45d9baf019 (patch) | |
tree | 498f0af006cd6f0d881890c9c3e726c201526254 /src/runtime/sys_solaris_amd64.s | |
parent | 49f62af790c02c389d34a24227a17ddd4b4db94a (diff) | |
download | go-60f67631a6c9e75ffd2829fcca56ac45d9baf019.tar.gz go-60f67631a6c9e75ffd2829fcca56ac45d9baf019.zip |
runtime: fix vet complaints for solaris/amd64, illumos/amd64
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,
while keeping "GO_BUILDER_NAME=misc-vetall go tool dist test" happy too.
For #31916.
Change-Id: Ic64f7f4034695dd4c32c9b7f258960faf3742a83
Reviewed-on: https://go-review.googlesource.com/c/go/+/176103
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/sys_solaris_amd64.s')
-rw-r--r-- | src/runtime/sys_solaris_amd64.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/sys_solaris_amd64.s b/src/runtime/sys_solaris_amd64.s index 930fc88997..ead8c8d2ec 100644 --- a/src/runtime/sys_solaris_amd64.s +++ b/src/runtime/sys_solaris_amd64.s @@ -291,7 +291,7 @@ TEXT runtime·sigfwd(SB),NOSPLIT,$0-32 // can also be called in cgo callback path without a g->m. TEXT runtime·usleep1(SB),NOSPLIT,$0 MOVL usec+0(FP), DI - MOVQ $runtime·usleep2(SB), AX // to hide from 6l + MOVQ $usleep2<>(SB), AX // to hide from 6l // Execute call on m->g0. get_tls(R15) @@ -328,7 +328,7 @@ noswitch: RET // Runs on OS stack. duration (in µs units) is in DI. -TEXT runtime·usleep2(SB),NOSPLIT,$0 +TEXT usleep2<>(SB),NOSPLIT,$0 LEAQ libc_usleep(SB), AX CALL AX RET |