]> Cypherpunks repositories - gostls13.git/commit
runtime: work around vet asmdecl checks for openbsd/386 mstart_stub
authorJoel Sing <joel@sing.id.au>
Fri, 30 Apr 2021 18:47:00 +0000 (04:47 +1000)
committerJoel Sing <joel@sing.id.au>
Fri, 30 Apr 2021 19:26:14 +0000 (19:26 +0000)
commitc23a32284a5a1e45855915a7401ebb715b837d10
tree0cf1f5cd793d83dc097da3c1a546fd9b7bd236e9
parentafa58ddf5a17a3618a24baf161b06cf0e066cb88
runtime: work around vet asmdecl checks for openbsd/386 mstart_stub

Include a NOP with the SP in order to disable/bypass vet asmdecl checks
for runtime.mstart_stub on openbsd/386. Without this we get:

runtime/sys_openbsd_386.s:33:1: [386] mstart_stub: use of 32(SP) points beyond argument frame

Change-Id: I834ae3dbceffcb5776481b076ec2afe3700671cf
Reviewed-on: https://go-review.googlesource.com/c/go/+/315789
Trust: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Joel Sing <joel@sing.id.au>
src/runtime/sys_openbsd_386.s