]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: add support for function export for gccgo.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Thu, 15 Mar 2012 22:50:25 +0000 (23:50 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Thu, 15 Mar 2012 22:50:25 +0000 (23:50 +0100)
commit3211b2cca98936e94dc2e819dbe474337ecdd24e
treec60b8ea79b62d86dd6758de8f85d75d9c90b63da
parent86c7bc6e8bd80ef651a92e5103ade11ce159b9d1
cmd/cgo: add support for function export for gccgo.

A "gccgoprefix" flag is added and used by the go tool,
to mirror the -fgo-prefix flag for gccgo, whose value
is required to know how to access functions from C.

Trying to export Go methods or unexported Go functions
will not work.

Also fix go test on "main" packages.

Updates #2313.
Fixes #3262.

R=mpimenov, rsc, iant
CC=golang-dev
https://golang.org/cl/5797046
src/cmd/cgo/main.go
src/cmd/cgo/out.go
src/cmd/go/build.go
src/cmd/go/pkg.go
src/cmd/go/test.go