]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: make sure build works when intrinsics are disabled
authorCherry Zhang <cherryyz@google.com>
Fri, 31 May 2019 21:11:50 +0000 (17:11 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 31 May 2019 21:27:59 +0000 (21:27 +0000)
commitc10db03cbe152c0851a0794fe230c4b40bbdbd82
tree1aed8e10a3e17a57b169762b92ef67dad3bb7b95
parent48a53d6eafaa80560629836939a8d0ee06569e6e
cmd/compile: make sure build works when intrinsics are disabled

Some runtime functions, like getcallerpc/sp, don't have Go or
assembly implementations and have to be intrinsified. Make sure
they are, even if intrinsics are disabled.

This makes "go build -gcflags=all=-d=ssa/intrinsics/off hello.go"
work.

Change-Id: I77caaed7715d3ca7ffef68a3cdc9357f095c6b9f
Reviewed-on: https://go-review.googlesource.com/c/go/+/179897
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/ssa.go