From: Ian Lance Taylor Date: Fri, 14 Jan 2011 18:51:47 +0000 (-0800) Subject: runtime/cgo: Don't define crosscall2 in dummy _cgo_main.c. X-Git-Tag: weekly.2011-01-19~58 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b97005c1d3220c5687a0c750c54d9c7868493429;p=gostls13.git runtime/cgo: Don't define crosscall2 in dummy _cgo_main.c. In this specific package crosscall2 is already defined in a .S file anyhow. This avoids a warning about mismatched alignment. R=rsc CC=golang-dev https://golang.org/cl/4000043 --- diff --git a/src/pkg/runtime/cgo/Makefile b/src/pkg/runtime/cgo/Makefile index 55b6967d92..dc9ffb4119 100644 --- a/src/pkg/runtime/cgo/Makefile +++ b/src/pkg/runtime/cgo/Makefile @@ -48,7 +48,6 @@ _cgo_defun.c: _cgo_main.c: echo 'int main() { return 0; }' >$@ - echo 'void *crosscall2;' >>$@ endif $(GOARCH).o: $(GOARCH).S