]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/abi-internal: declare R14 completely fixed
authorAustin Clements <austin@google.com>
Fri, 9 Apr 2021 17:55:18 +0000 (13:55 -0400)
committerAustin Clements <austin@google.com>
Fri, 9 Apr 2021 18:11:15 +0000 (18:11 +0000)
commitfcf8a6640b1bfb2444749b558f926321841922fa
tree86af757d4a098169bfd2328f2316c4748d1b5b6f
parent0ad46889a140c3b2e72b8aa4a47ac242571c521f
cmd/compile/abi-internal: declare R14 completely fixed

Currently, we allow R14, the current goroutine pointer, to be
clobbered in function bodies as long as the function restores it. This
is unnecessary complexity and could lead to confusing inconsistencies
with other architectures that can't simply restore it from TLS.

Updates #40724.

Change-Id: I4c052f0dd0b31d31afeb0c5aff05c314d7a852f3
Reviewed-on: https://go-review.googlesource.com/c/go/+/309009
Trust: Austin Clements <austin@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/abi-internal.md