-
- Downloads
cmd/cgo: enable #cgo noescape/nocallback
In Go 1.22 we added code to the go/build package to ignore #cgo noescape and nocallback directives. That permits us to enable these directives in Go 1.24. Also, this fixed a Bug in CL 497837: After retiring _Cgo_use for parameters, the compiler will treat the parameters, start from the second, as non-alive. Then, they will be marked as scalar in stackmap, which means the pointer won't be copied correctly in copystack. Fixes #56378. Fixes #63739. Change-Id: I46e773240f8a467c3c4ba201dc5b4ee473cf6e3e GitHub-Last-Rev: 42fcc506d6a7681ef24ac36a5904b57bda4b15cd GitHub-Pull-Request: golang/go#66879 Reviewed-on: https://go-review.googlesource.com/c/go/+/579955 Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by:Ian Lance Taylor <iant@google.com> Reviewed-by:
Carlos Amedee <carlos@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Showing
- src/cmd/cgo/doc.go 24 additions, 0 deletionssrc/cmd/cgo/doc.go
- src/cmd/cgo/gcc.go 0 additions, 2 deletionssrc/cmd/cgo/gcc.go
- src/cmd/cgo/internal/test/test.go 2 additions, 2 deletionssrc/cmd/cgo/internal/test/test.go
- src/cmd/cgo/internal/testerrors/testdata/notmatchedcfunction.go 1 addition, 2 deletions...d/cgo/internal/testerrors/testdata/notmatchedcfunction.go
- src/cmd/cgo/out.go 14 additions, 8 deletionssrc/cmd/cgo/out.go
- src/runtime/cgo.go 11 additions, 2 deletionssrc/runtime/cgo.go
- src/runtime/crash_cgo_test.go 9 additions, 2 deletionssrc/runtime/crash_cgo_test.go
- src/runtime/linkname.go 1 addition, 0 deletionssrc/runtime/linkname.go
- src/runtime/testdata/testprogcgo/cgonocallback.go 2 additions, 1 deletionsrc/runtime/testdata/testprogcgo/cgonocallback.go
- src/runtime/testdata/testprogcgo/cgonoescape.go 2 additions, 1 deletionsrc/runtime/testdata/testprogcgo/cgonoescape.go
- src/runtime/testdata/testprogcgo/issue63739.go 59 additions, 0 deletionssrc/runtime/testdata/testprogcgo/issue63739.go
Loading
Please register or sign in to comment