]> Cypherpunks repositories - gostls13.git/commit
cmd/go, cmd/cgo: support older versions of gccgo that lack cgo.Incomplete
authorIan Lance Taylor <iant@golang.org>
Fri, 28 Oct 2022 19:13:37 +0000 (12:13 -0700)
committerGopher Robot <gobot@golang.org>
Sat, 29 Oct 2022 00:40:18 +0000 (00:40 +0000)
commit3c17053bba406545a87af265f5e4fc8bbdecdcfe
tree14a5d84d53ceeb76c98ab452612d56fc4ca71dce
parent91a1f0d918f54e3b3425248288085db4d5619075
cmd/go, cmd/cgo: support older versions of gccgo that lack cgo.Incomplete

Test whether gccgo/GoLLVM supports cgo.Incomplete. If it doesn't, use a
local definition rather than importing it.

Roll back 426496, which skipped a gccgo test, as it now works.

For #46731
Fixes #54761

Change-Id: I8bb2ad84c317094495405e178bf5c9694f82af56
Reviewed-on: https://go-review.googlesource.com/c/go/+/446260
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/cgo/doc.go
src/cmd/cgo/gcc.go
src/cmd/cgo/main.go
src/cmd/cgo/out.go
src/cmd/go/internal/work/exec.go
src/cmd/go/internal/work/gccgo.go
src/cmd/go/testdata/script/build_overlay.txt