commit | 3211b2cca98936e94dc2e819dbe474337ecdd24e | [log] [tgz] |
---|---|---|
author | Rémy Oudompheng <oudomphe@phare.normalesup.org> | Thu Mar 15 23:50:25 2012 +0100 |
committer | Rémy Oudompheng <oudomphe@phare.normalesup.org> | Thu Mar 15 23:50:25 2012 +0100 |
tree | c60b8ea79b62d86dd6758de8f85d75d9c90b63da | |
parent | 86c7bc6e8bd80ef651a92e5103ade11ce159b9d1 [diff] |
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