]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.15] cmd/compile: export notinheap annotation to object file
authorKeith Randall <khr@golang.org>
Fri, 2 Oct 2020 23:04:12 +0000 (16:04 -0700)
committerDmitri Shuralyov <dmitshur@golang.org>
Mon, 12 Oct 2020 15:15:57 +0000 (15:15 +0000)
commit76a2c87a2c4e78f40f0f70bda3da93c773630179
treeed83964a927d7db80325c3254b532c60685f57f0
parentcfeb16ddec5b2134198dcc029cdd501ed11a7c01
[release-branch.go1.15] cmd/compile: export notinheap annotation to object file

In the rare case when a cgo type makes it into an object file, we need
the go:notinheap annotation to go with it.

Fixes #41432.

Change-Id: Ie2ef241ee49661792e0d8c8c46c51b2fe5c6fa7c
Reviewed-on: https://go-review.googlesource.com/c/go/+/259300
Trust: Keith Randall <khr@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
misc/cgo/test/testdata/issue41761.go [new file with mode: 0644]
misc/cgo/test/testdata/issue41761a/a.go [new file with mode: 0644]
src/cmd/compile/internal/gc/iexport.go
src/cmd/compile/internal/gc/iimport.go