]> Cypherpunks repositories - gostls13.git/commit
runtime: use explicit NOFRAME on netbsd/amd64
authorqmuntal <quimmuntal@gmail.com>
Wed, 8 Feb 2023 13:28:18 +0000 (14:28 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Fri, 24 Feb 2023 16:59:50 +0000 (16:59 +0000)
commitf76fc28c6b31f28783b94596d6328450202c903a
treeb83fae5252e1d167b85a410bffbbb6513981d2df
parentb87c8c3523010be38c53e0c82e58016202be6a0d
runtime: use explicit NOFRAME on netbsd/amd64

This CL marks some netbsd assembly functions as NOFRAME to avoid
relying on the implicit amd64 NOFRAME heuristic, where NOSPLIT functions
without stack were also marked as NOFRAME.

While here, and thanks to CL 466355, `asm_netbsd_amd64.s` can
be deleted in favor of `asm9_unix2_amd64.s`, which makes better
use of the frame pointer.

Updates #58378

Change-Id: Iff554b664ec25f2bb6ec198c0f684590b359c383
Reviewed-on: https://go-review.googlesource.com/c/go/+/466396
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
src/cmd/internal/obj/x86/obj6.go
src/runtime/sys_netbsd_amd64.s
src/syscall/asm9_unix2_amd64.s
src/syscall/asm_netbsd_amd64.s [deleted file]