diff options
| author | Maya Rashish <maya@netbsd.org> | 2019-04-20 11:57:11 +0000 |
|---|---|---|
| committer | Benny Siegert <bsiegert@gmail.com> | 2019-04-20 14:20:24 +0000 |
| commit | 78f0de10eccf3606dbc4b854a4cd3a7e502edc07 (patch) | |
| tree | dcb2921429dc1992a5361e08768e4779b3b448a0 /src | |
| parent | a1c481d85139f77ab27210526f9dfa2f3b375ef9 (diff) | |
| download | go-78f0de10eccf3606dbc4b854a4cd3a7e502edc07.tar.xz | |
runtime: move linux specific code into linux specific files
Allows us to stop whitelisting this error on many OS/arch combinations
XXX I'm not sure I am running vet correctly, and testing all platforms right.
Change-Id: I29f548bd5f4a63bd13c4d0667d4209c75c886fd9
GitHub-Last-Rev: 52f6ff4a6b986e86f8b26c3d19da7707d39f1664
GitHub-Pull-Request: golang/go#31583
Reviewed-on: https://go-review.googlesource.com/c/go/+/173157
Run-TryBot: Benny Siegert <bsiegert@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/vet/all/whitelist/darwin_arm.txt | 5 | ||||
| -rw-r--r-- | src/cmd/vet/all/whitelist/darwin_arm64.txt | 3 | ||||
| -rw-r--r-- | src/cmd/vet/all/whitelist/freebsd_arm.txt | 1 | ||||
| -rw-r--r-- | src/cmd/vet/all/whitelist/nacl_arm.txt | 1 | ||||
| -rw-r--r-- | src/cmd/vet/all/whitelist/netbsd_arm.txt | 1 | ||||
| -rw-r--r-- | src/cmd/vet/all/whitelist/openbsd_arm.txt | 1 | ||||
| -rw-r--r-- | src/cmd/vet/all/whitelist/plan9_arm.txt | 1 | ||||
| -rw-r--r-- | src/runtime/asm_arm.s | 3 | ||||
| -rw-r--r-- | src/runtime/asm_arm64.s | 3 | ||||
| -rw-r--r-- | src/runtime/sys_linux_arm.s | 3 | ||||
| -rw-r--r-- | src/runtime/sys_linux_arm64.s | 3 |
11 files changed, 6 insertions, 19 deletions
diff --git a/src/cmd/vet/all/whitelist/darwin_arm.txt b/src/cmd/vet/all/whitelist/darwin_arm.txt deleted file mode 100644 index 1c25c6a939..0000000000 --- a/src/cmd/vet/all/whitelist/darwin_arm.txt +++ /dev/null @@ -1,5 +0,0 @@ -// darwin/arm-specific vet whitelist. See readme.txt for details. - -// Ok. - -runtime/asm_arm.s: [arm] sigreturn: function sigreturn missing Go declaration diff --git a/src/cmd/vet/all/whitelist/darwin_arm64.txt b/src/cmd/vet/all/whitelist/darwin_arm64.txt deleted file mode 100644 index a1edb71383..0000000000 --- a/src/cmd/vet/all/whitelist/darwin_arm64.txt +++ /dev/null @@ -1,3 +0,0 @@ -// darwin/arm64-specific vet whitelist. See readme.txt for details. - -runtime/asm_arm64.s: [arm64] sigreturn: function sigreturn missing Go declaration diff --git a/src/cmd/vet/all/whitelist/freebsd_arm.txt b/src/cmd/vet/all/whitelist/freebsd_arm.txt index 11e5c42fd8..5cb6989a26 100644 --- a/src/cmd/vet/all/whitelist/freebsd_arm.txt +++ b/src/cmd/vet/all/whitelist/freebsd_arm.txt @@ -1,4 +1,3 @@ // freebsd/arm-specific vet whitelist. See readme.txt for details. -runtime/asm_arm.s: [arm] sigreturn: function sigreturn missing Go declaration runtime/sys_freebsd_arm.s: [arm] read_tls_fallback: function read_tls_fallback missing Go declaration diff --git a/src/cmd/vet/all/whitelist/nacl_arm.txt b/src/cmd/vet/all/whitelist/nacl_arm.txt index dde0092570..fbdcb5d229 100644 --- a/src/cmd/vet/all/whitelist/nacl_arm.txt +++ b/src/cmd/vet/all/whitelist/nacl_arm.txt @@ -1,6 +1,5 @@ // nacl/arm-specific vet whitelist. See readme.txt for details. -runtime/asm_arm.s: [arm] sigreturn: function sigreturn missing Go declaration runtime/sys_nacl_arm.s: [arm] nacl_clock_gettime: function nacl_clock_gettime missing Go declaration runtime/sys_nacl_arm.s: [arm] nacl_sysinfo: function nacl_sysinfo missing Go declaration runtime/sys_nacl_arm.s: [arm] read_tls_fallback: function read_tls_fallback missing Go declaration diff --git a/src/cmd/vet/all/whitelist/netbsd_arm.txt b/src/cmd/vet/all/whitelist/netbsd_arm.txt index c0a0aa2114..85adae2129 100644 --- a/src/cmd/vet/all/whitelist/netbsd_arm.txt +++ b/src/cmd/vet/all/whitelist/netbsd_arm.txt @@ -1,5 +1,4 @@ // netbsd/arm-specific vet whitelist. See readme.txt for details. -runtime/asm_arm.s: [arm] sigreturn: function sigreturn missing Go declaration runtime/sys_netbsd_arm.s: [arm] read_tls_fallback: function read_tls_fallback missing Go declaration syscall/asm_netbsd_arm.s: [arm] Syscall9: unknown variable trap; offset 0 is num+0(FP) diff --git a/src/cmd/vet/all/whitelist/openbsd_arm.txt b/src/cmd/vet/all/whitelist/openbsd_arm.txt index 16bf26c734..14823e1bf8 100644 --- a/src/cmd/vet/all/whitelist/openbsd_arm.txt +++ b/src/cmd/vet/all/whitelist/openbsd_arm.txt @@ -1,4 +1,3 @@ // openbsd/arm-specific vet whitelist. See readme.txt for details. -runtime/asm_arm.s: [arm] sigreturn: function sigreturn missing Go declaration runtime/sys_openbsd_arm.s: [arm] read_tls_fallback: function read_tls_fallback missing Go declaration diff --git a/src/cmd/vet/all/whitelist/plan9_arm.txt b/src/cmd/vet/all/whitelist/plan9_arm.txt index 5af3271760..af155e819f 100644 --- a/src/cmd/vet/all/whitelist/plan9_arm.txt +++ b/src/cmd/vet/all/whitelist/plan9_arm.txt @@ -1,4 +1,3 @@ // plan9/arm-specific vet whitelist. See readme.txt for details. -runtime/asm_arm.s: [arm] sigreturn: function sigreturn missing Go declaration runtime/sys_plan9_arm.s: [arm] read_tls_fallback: function read_tls_fallback missing Go declaration diff --git a/src/runtime/asm_arm.s b/src/runtime/asm_arm.s index 5c6dfedac8..efd0e2a1a2 100644 --- a/src/runtime/asm_arm.s +++ b/src/runtime/asm_arm.s @@ -891,9 +891,6 @@ TEXT runtime·usplitR0(SB),NOSPLIT,$0 SUB R1, R3, R1 RET -TEXT runtime·sigreturn(SB),NOSPLIT,$0-0 - RET - #ifndef GOOS_nacl // This is called from .init_array and follows the platform, not Go, ABI. TEXT runtime·addmoduledata(SB),NOSPLIT,$0-8 diff --git a/src/runtime/asm_arm64.s b/src/runtime/asm_arm64.s index 871dc95dea..6e3b1b14a6 100644 --- a/src/runtime/asm_arm64.s +++ b/src/runtime/asm_arm64.s @@ -1128,9 +1128,6 @@ TEXT runtime·goexit(SB),NOSPLIT|NOFRAME|TOPFRAME,$0-0 MOVD R0, R0 // NOP BL runtime·goexit1(SB) // does not return -TEXT runtime·sigreturn(SB),NOSPLIT,$0-0 - RET - // This is called from .init_array and follows the platform, not Go, ABI. TEXT runtime·addmoduledata(SB),NOSPLIT,$0-0 SUB $0x10, RSP diff --git a/src/runtime/sys_linux_arm.s b/src/runtime/sys_linux_arm.s index 43a58335c8..637123be45 100644 --- a/src/runtime/sys_linux_arm.s +++ b/src/runtime/sys_linux_arm.s @@ -606,3 +606,6 @@ TEXT runtime·sbrk0(SB),NOSPLIT,$0-4 SWI $0 MOVW R0, ret+0(FP) RET + +TEXT runtime·sigreturn(SB),NOSPLIT,$0-0 + RET diff --git a/src/runtime/sys_linux_arm64.s b/src/runtime/sys_linux_arm64.s index 8b344be8f8..321d74254c 100644 --- a/src/runtime/sys_linux_arm64.s +++ b/src/runtime/sys_linux_arm64.s @@ -599,3 +599,6 @@ TEXT runtime·sbrk0(SB),NOSPLIT,$0-8 SVC MOVD R0, ret+0(FP) RET + +TEXT runtime·sigreturn(SB),NOSPLIT,$0-0 + RET |
