aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal
diff options
context:
space:
mode:
authorqmuntal <quimmuntal@gmail.com>2023-02-08 16:31:15 +0100
committerQuim Muntal <quimmuntal@gmail.com>2023-02-27 19:19:32 +0000
commit0b41b678c2e313b80e1e29695bee26d363fab32a (patch)
tree3e087b89197334ba388838c61953ecf1745ca3b8 /src/cmd/internal
parent132fae93b789ce512068ff4300c665b40635b74e (diff)
downloadgo-0b41b678c2e313b80e1e29695bee26d363fab32a.tar.xz
runtime: use explicit NOFRAME on openbsd/amd64
This CL marks some openbsd assembly functions as NOFRAME to avoid relying on the implicit amd64 NOFRAME heuristic, where NOSPLIT functions without stack were also marked as NOFRAME. Updates #58378 Change-Id: I993549df41a93255fb714357443f8b24c3dfb0a4 Reviewed-on: https://go-review.googlesource.com/c/go/+/466455 Reviewed-by: Keith Randall <khr@google.com> Run-TryBot: Quim Muntal <quimmuntal@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Joel Sing <joel@sing.id.au> Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/cmd/internal')
-rw-r--r--src/cmd/internal/obj/x86/obj6.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/internal/obj/x86/obj6.go b/src/cmd/internal/obj/x86/obj6.go
index c81cbf12e9..a80535fa46 100644
--- a/src/cmd/internal/obj/x86/obj6.go
+++ b/src/cmd/internal/obj/x86/obj6.go
@@ -614,7 +614,7 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
var usefpheuristic bool
switch ctxt.Headtype {
case objabi.Hwindows, objabi.Hdarwin, objabi.Hlinux, objabi.Hdragonfly,
- objabi.Hfreebsd, objabi.Hnetbsd:
+ objabi.Hfreebsd, objabi.Hnetbsd, objabi.Hopenbsd:
default:
usefpheuristic = true
}