]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: export notinheap annotation to object file
authorKeith Randall <khr@golang.org>
Fri, 2 Oct 2020 22:48:50 +0000 (15:48 -0700)
committerKeith Randall <khr@golang.org>
Mon, 5 Oct 2020 18:52:43 +0000 (18:52 +0000)
commita9c75ecd3da2d87ce08b2e75bd4f332185cd7fc8
treef461d93747788bb5da133ed37bcf5814fb5bb7e6
parenta65bc048bf388e399af9bcfd726cd0f11bba7c8e
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 #41761

Change-Id: I541500cb1a03de954881aef659f96fc0b7738848
Reviewed-on: https://go-review.googlesource.com/c/go/+/259297
Trust: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@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
src/cmd/compile/internal/gc/lex.go