]> Cypherpunks repositories - gostls13.git/commit
liblink: make GO_ARGS the default for functions beginning with ·
authorRuss Cox <rsc@golang.org>
Tue, 16 Sep 2014 21:39:55 +0000 (17:39 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 16 Sep 2014 21:39:55 +0000 (17:39 -0400)
commit653fb6d872e31b05441f313911684d5cd351597e
tree36061ebc305ff6f1b59aa05012aedb35091b968e
parentf1abe0d06bc94399c4abee041624efa36742fc1e
liblink: make GO_ARGS the default for functions beginning with ·

If there is a leading ·, assume there is a Go prototype and
attach the Go prototype information to the function.
If the function is not called from Go and does not need a
Go prototype, it can be made file-local instead (using name<>(SB)).

This fixes the current BSD build failures, by giving functions like
sync/atomic.StoreUint32 argument stack map information.

Fixes #8753.

LGTM=khr, iant
R=golang-codereviews, iant, khr, bradfitz
CC=golang-codereviews, r, rlh
https://golang.org/cl/142150043
25 files changed:
src/liblink/objfile.c
src/runtime/asm_386.s
src/runtime/asm_amd64.s
src/runtime/asm_arm.s
src/syscall/asm_darwin_386.s
src/syscall/asm_darwin_amd64.s
src/syscall/asm_dragonfly_386.s
src/syscall/asm_dragonfly_amd64.s
src/syscall/asm_freebsd_386.s
src/syscall/asm_freebsd_amd64.s
src/syscall/asm_freebsd_arm.s
src/syscall/asm_linux_386.s
src/syscall/asm_linux_amd64.s
src/syscall/asm_linux_arm.s
src/syscall/asm_nacl_386.s
src/syscall/asm_nacl_amd64p32.s
src/syscall/asm_nacl_arm.s
src/syscall/asm_netbsd_386.s
src/syscall/asm_netbsd_amd64.s
src/syscall/asm_netbsd_arm.s
src/syscall/asm_openbsd_386.s
src/syscall/asm_openbsd_amd64.s
src/syscall/asm_plan9_386.s
src/syscall/asm_plan9_amd64.s
test/nosplit.go