From: Josh Bleecher Snyder Date: Tue, 14 Feb 2017 00:19:51 +0000 (-0800) Subject: cmd/vet/all: add mips and mipsle X-Git-Tag: go1.9beta1~1487 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=84a855e547b8ef9a1a7aaaaedc3b1058ef7d1c09;p=gostls13.git cmd/vet/all: add mips and mipsle Change-Id: I689b2e8e214561350f88fa4e20c8f34cf69dc6a7 Reviewed-on: https://go-review.googlesource.com/37301 Run-TryBot: Josh Bleecher Snyder TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/src/cmd/vet/all/main.go b/src/cmd/vet/all/main.go index e4c0946971..01f24a67d7 100644 --- a/src/cmd/vet/all/main.go +++ b/src/cmd/vet/all/main.go @@ -347,6 +347,8 @@ var archAsmX = map[string]string{ "android": "linux", "mips64": "mips64x", "mips64le": "mips64x", + "mips": "mipsx", + "mipsle": "mipsx", "ppc64": "ppc64x", "ppc64le": "ppc64x", } diff --git a/src/cmd/vet/all/whitelist/mips.txt b/src/cmd/vet/all/whitelist/mips.txt new file mode 100644 index 0000000000..ad29336ad1 --- /dev/null +++ b/src/cmd/vet/all/whitelist/mips.txt @@ -0,0 +1,7 @@ +// mips64-specific vet whitelist. See readme.txt for details. + +// Work around if-def'd code. Will be fixed by golang.org/issue/17544. +runtime/sys_linux_mipsx.s: [mips] walltime: invalid offset sec_lo+0(FP); expected sec_lo+4(FP) +runtime/sys_linux_mipsx.s: [mips] walltime: invalid offset sec_hi+4(FP); expected sec_hi+0(FP) +runtime/sys_linux_mipsx.s: [mips] nanotime: invalid offset ret_lo+0(FP); expected ret_lo+4(FP) +runtime/sys_linux_mipsx.s: [mips] nanotime: invalid offset ret_hi+4(FP); expected ret_hi+0(FP) diff --git a/src/cmd/vet/all/whitelist/mipsle.txt b/src/cmd/vet/all/whitelist/mipsle.txt new file mode 100644 index 0000000000..929216905e --- /dev/null +++ b/src/cmd/vet/all/whitelist/mipsle.txt @@ -0,0 +1,7 @@ +// mips64-specific vet whitelist. See readme.txt for details. + +// Work around if-def'd code. Will be fixed by golang.org/issue/17544. +runtime/sys_linux_mipsx.s: [mipsle] walltime: invalid offset sec_lo+4(FP); expected sec_lo+0(FP) +runtime/sys_linux_mipsx.s: [mipsle] walltime: invalid offset sec_hi+0(FP); expected sec_hi+4(FP) +runtime/sys_linux_mipsx.s: [mipsle] nanotime: invalid offset ret_lo+4(FP); expected ret_lo+0(FP) +runtime/sys_linux_mipsx.s: [mipsle] nanotime: invalid offset ret_hi+0(FP); expected ret_hi+4(FP) diff --git a/src/cmd/vet/all/whitelist/mipsx.txt b/src/cmd/vet/all/whitelist/mipsx.txt new file mode 100644 index 0000000000..949a1b366f --- /dev/null +++ b/src/cmd/vet/all/whitelist/mipsx.txt @@ -0,0 +1,11 @@ +// mips64-specific vet whitelist. See readme.txt for details. + +reflect/asm_mipsx.s: [GOARCH] makeFuncStub: use of 8(R29) points beyond argument frame +reflect/asm_mipsx.s: [GOARCH] methodValueCall: use of 8(R29) points beyond argument frame +runtime/asm_mipsx.s: [GOARCH] abort: function abort missing Go declaration +runtime/tls_mipsx.s: [GOARCH] save_g: function save_g missing Go declaration +runtime/tls_mipsx.s: [GOARCH] load_g: function load_g missing Go declaration +runtime/asm_mipsx.s: [GOARCH] cannot check cross-package assembly function: Compare is in package bytes +runtime/sys_linux_mipsx.s: [GOARCH] clone: 12(R29) should be mp+8(FP) +runtime/sys_linux_mipsx.s: [GOARCH] clone: 4(R29) should be flags+0(FP) +runtime/sys_linux_mipsx.s: [GOARCH] clone: 8(R29) should be stk+4(FP)