From: Cuong Manh Le Date: Sat, 19 Oct 2019 09:14:51 +0000 (+0700) Subject: cmd/compile: disable checkptr for //go:nosplit functions X-Git-Tag: go1.14beta1~654 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9979366e07fa8aa6fac81702a70f6eacf427c431;p=gostls13.git 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 Reviewed-by: Matthew Dempsky TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/compile/internal/gc/lex.go b/src/cmd/compile/internal/gc/lex.go index e05b454805..2b502c4601 100644 --- a/src/cmd/compile/internal/gc/lex.go +++ b/src/cmd/compile/internal/gc/lex.go @@ -61,7 +61,7 @@ func pragmaValue(verb string) syntax.Pragma { case "go:norace": return Norace case "go:nosplit": - return Nosplit + return Nosplit | NoCheckPtr // implies NoCheckPtr (see #34972) case "go:noinline": return Noinline case "go:nocheckptr":