Commit 9979366e authored by Cuong Manh Le's avatar Cuong Manh Le Committed by Matthew Dempsky

cmd/compile: disable checkptr for //go:nosplit functions

Make go test -a -short -gcflags=all=-d=checkptr passes on darwin.

Update #34972

Change-Id: I71cf14ec1faccd4837713aa30c90ed665899b908
Reviewed-on: https://go-review.googlesource.com/c/go/+/202158
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: default avatarMatthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 2e1a6a28
...@@ -61,7 +61,7 @@ func pragmaValue(verb string) syntax.Pragma { ...@@ -61,7 +61,7 @@ func pragmaValue(verb string) syntax.Pragma {
case "go:norace": case "go:norace":
return Norace return Norace
case "go:nosplit": case "go:nosplit":
return Nosplit return Nosplit | NoCheckPtr // implies NoCheckPtr (see #34972)
case "go:noinline": case "go:noinline":
return Noinline return Noinline
case "go:nocheckptr": case "go:nocheckptr":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment