]> git.ipfire.org Git - thirdparty/gcc.git/commit
cmd/cgo: add and use runtime/cgo.Incomplete instead of //go:notinheap
authorIan Lance Taylor <iant@golang.org>
Wed, 21 Sep 2022 23:26:08 +0000 (16:26 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 22 Sep 2022 13:28:19 +0000 (06:28 -0700)
commitf35be1268c996d993ab0b4ff329734d467474445
tree0c12b075c51c0d5097f26953835ae540d9f2f501
parent44dba051d72587828882cbb31118934a4fb06c1a
cmd/cgo: add and use runtime/cgo.Incomplete instead of //go:notinheap

This ports https://go.dev/cl/421879 to libgo. This is a quick port to
update gofrontend to work with the version of cgo in gc mainline.
A more complete port will follow, changing the gc version of cmd/cgo to
choose an approach based on feature testing the gccgo in use.

Updates golang/go#46731

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/432338
gcc/go/gofrontend/MERGE
libgo/go/cmd/cgo/gcc.go
libgo/go/cmd/cgo/main.go
libgo/go/cmd/cgo/out.go
libgo/go/cmd/go/internal/load/pkg.go
libgo/go/runtime/cgo/cgo.go [new file with mode: 0644]