]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: for gccgo add #define to cgo_export.h for expected name
authorIan Lance Taylor <iant@golang.org>
Tue, 29 Apr 2014 12:53:38 +0000 (08:53 -0400)
committerIan Lance Taylor <iant@golang.org>
Tue, 29 Apr 2014 12:53:38 +0000 (08:53 -0400)
commitfee51f45ab37c77ad8b7967b091ddf19d4e259a3
treea6150c46b0afc1acf267f60376a8ea5f9eb1434f
parent382cc8cb398c011a1701c410b747f1e80fa66687
cmd/cgo: for gccgo add #define to cgo_export.h for expected name

For gccgo we rename exported functions so that the compiler
will make them visible.  This CL adds a #define so that C
functions that #include "cgo_export.h" can use the expected
names of the function.

The test for this is the existing issue6833 test in
misc/cgo/test.  Without this CL it fails when using
-compiler=gccgo.

LGTM=minux.ma, rsc
R=golang-codereviews, gobot, rsc, minux.ma
CC=golang-codereviews
https://golang.org/cl/91830046
src/cmd/cgo/out.go