1
0
mirror of https://github.com/golang/go synced 2024-10-03 15:21:22 -06:00

cmd/vet/all: add s390x support

Some of these whitelist entries could be
eliminated, e.g. by the addition of Go
declarations, but this is a start.

Change-Id: I2fb3234cf05ebc6b161aacac2d4c15d810d50527
Reviewed-on: https://go-review.googlesource.com/32671
Reviewed-by: Michael Munday <munday@ca.ibm.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Josh Bleecher Snyder 2016-11-02 18:16:51 -07:00
parent 62dafbb4c6
commit e83911d6fc
2 changed files with 21 additions and 5 deletions

View File

@ -105,7 +105,7 @@ func (w whitelist) load(goos string, goarch string) {
// Look up whether goarch is a 32-bit or 64-bit architecture.
archbits, ok := nbits[goarch]
if !ok {
log.Fatal("unknown bitwidth for arch %q", goarch)
log.Fatalf("unknown bitwidth for arch %q", goarch)
}
// Look up whether goarch has a shared arch suffix,
@ -197,10 +197,6 @@ func vetPlatforms(pp []platform) {
}
func (p platform) vet(ncpus int) {
if p.arch == "s390x" {
// TODO: reinstate when s390x gets vet support (issue 15454)
return
}
var buf bytes.Buffer
fmt.Fprintf(&buf, "go run main.go -p %s\n", p)
@ -329,6 +325,7 @@ var nbits = map[string]int{
"mips64le": 64,
"ppc64": 64,
"ppc64le": 64,
"s390x": 64,
}
// archAsmX maps architectures to the suffix usually used for their assembly files,

View File

@ -0,0 +1,19 @@
reflect/asm_s390x.s: [s390x] makeFuncStub: use of 16(R15) points beyond argument frame
reflect/asm_s390x.s: [s390x] methodValueCall: use of 16(R15) points beyond argument frame
runtime/asm_s390x.s: [s390x] abort: function abort missing Go declaration
runtime/asm_s390x.s: [s390x] memeqbody: function memeqbody missing Go declaration
runtime/asm_s390x.s: [s390x] memeqbodyclc: function memeqbodyclc missing Go declaration
runtime/asm_s390x.s: [s390x] indexbytebody: function indexbytebody missing Go declaration
runtime/asm_s390x.s: [s390x] cannot check cross-package assembly function: Compare is in package bytes
runtime/asm_s390x.s: [s390x] cmpbody: function cmpbody missing Go declaration
runtime/asm_s390x.s: [s390x] cmpbodyclc: function cmpbodyclc missing Go declaration
runtime/asm_s390x.s: [s390x] cannot check cross-package assembly function: supportsVX is in package strings
runtime/asm_s390x.s: [s390x] cannot check cross-package assembly function: supportsVX is in package bytes
runtime/asm_s390x.s: [s390x] cannot check cross-package assembly function: indexShortStr is in package strings
runtime/asm_s390x.s: [s390x] cannot check cross-package assembly function: indexShortStr is in package bytes
runtime/asm_s390x.s: [s390x] indexShortStr: function indexShortStr missing Go declaration
runtime/asm_s390x.s: [s390x] addmoduledata: function addmoduledata missing Go declaration
runtime/memclr_s390x.s: [s390x] memclr_s390x_exrl_xc: function memclr_s390x_exrl_xc missing Go declaration
runtime/memmove_s390x.s: [s390x] memmove_s390x_exrl_mvc: function memmove_s390x_exrl_mvc missing Go declaration
runtime/tls_s390x.s: [s390x] save_g: function save_g missing Go declaration
runtime/tls_s390x.s: [s390x] load_g: function load_g missing Go declaration