diff options
author | Russ Cox <rsc@golang.org> | 2019-05-08 13:59:48 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2019-05-09 21:13:22 +0000 |
commit | 49f62af790c02c389d34a24227a17ddd4b4db94a (patch) | |
tree | e86c484a2cf0b20b88a89ce1a682e4a0727274a8 /src/runtime/sys_linux_ppc64x.s | |
parent | 1ea76443ba1825f03e187157b3f58560c52609b9 (diff) | |
download | go-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/sys_linux_ppc64x.s')
-rw-r--r-- | src/runtime/sys_linux_ppc64x.s | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/runtime/sys_linux_ppc64x.s b/src/runtime/sys_linux_ppc64x.s index f1515ec41b..13d23156bd 100644 --- a/src/runtime/sys_linux_ppc64x.s +++ b/src/runtime/sys_linux_ppc64x.s @@ -285,16 +285,19 @@ TEXT runtime·sigfwd(SB),NOSPLIT,$0-32 MOVD 24(R1), R2 RET +TEXT runtime·sigreturn(SB),NOSPLIT,$0-0 + RET + #ifdef GOARCH_ppc64le // ppc64le doesn't need function descriptors TEXT runtime·sigtramp(SB),NOSPLIT,$64 #else // function descriptor for the real sigtramp TEXT runtime·sigtramp(SB),NOSPLIT|NOFRAME,$0 - DWORD $runtime·_sigtramp(SB) + DWORD $sigtramp<>(SB) DWORD $0 DWORD $0 -TEXT runtime·_sigtramp(SB),NOSPLIT,$64 +TEXT sigtramp<>(SB),NOSPLIT,$64 #endif // initialize essential registers (just in case) BL runtime·reginit(SB) @@ -410,11 +413,11 @@ sigtrampnog: #else // function descriptor for the real sigtramp TEXT runtime·cgoSigtramp(SB),NOSPLIT|NOFRAME,$0 - DWORD $runtime·_cgoSigtramp(SB) + DWORD $cgoSigtramp<>(SB) DWORD $0 DWORD $0 -TEXT runtime·_cgoSigtramp(SB),NOSPLIT,$0 - JMP runtime·_sigtramp(SB) +TEXT cgoSigtramp<>(SB),NOSPLIT,$0 + JMP sigtramp<>(SB) #endif TEXT runtime·sigprofNonGoWrapper<>(SB),NOSPLIT,$0 |