1
0
mirror of https://github.com/golang/go synced 2024-11-21 22:34:48 -07:00

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
This commit is contained in:
Ian Lance Taylor 2011-01-14 10:51:47 -08:00
parent 18941a75b7
commit b97005c1d3

View File

@ -48,7 +48,6 @@ _cgo_defun.c:
_cgo_main.c:
echo 'int main() { return 0; }' >$@
echo 'void *crosscall2;' >>$@
endif
$(GOARCH).o: $(GOARCH).S