aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sys_darwin_amd64.s
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2021-03-17 19:15:38 -0400
committerCherry Zhang <cherryyz@google.com>2021-03-19 23:21:21 +0000
commit6ae3b70ef255cd7317764a12b7230f293683f2c5 (patch)
treeba2d6362e17980c0123f9e1b37c3c3a54e4d4214 /src/runtime/sys_darwin_amd64.s
parent9f2a71b6e7b418182dd0467e7d054ccf8130c026 (diff)
downloadgo-6ae3b70ef255cd7317764a12b7230f293683f2c5.tar.gz
go-6ae3b70ef255cd7317764a12b7230f293683f2c5.zip
cmd/compile: add clobberdeadreg mode
When -clobberdeadreg flag is set, the compiler inserts code that clobbers integer registers at call sites. This may be helpful for debugging register ABI. Only implemented on AMD64 for now. Change-Id: Ia203d3f891c30fd95d0103489056fe01d63a2899 Reviewed-on: https://go-review.googlesource.com/c/go/+/302809 Trust: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/runtime/sys_darwin_amd64.s')
-rw-r--r--src/runtime/sys_darwin_amd64.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/sys_darwin_amd64.s b/src/runtime/sys_darwin_amd64.s
index 0fe8c7e172..3e9eccf19e 100644
--- a/src/runtime/sys_darwin_amd64.s
+++ b/src/runtime/sys_darwin_amd64.s
@@ -434,7 +434,7 @@ TEXT runtime·fcntl_trampoline<ABIInternal>(SB),NOSPLIT,$0
// mstart_stub is the first function executed on a new thread started by pthread_create.
// It just does some low-level setup and then calls mstart.
// Note: called with the C calling convention.
-TEXT runtime·mstart_stub(SB),NOSPLIT,$0
+TEXT runtime·mstart_stub<ABIInternal>(SB),NOSPLIT,$0
// DI points to the m.
// We are already on m's g0 stack.