]> Cypherpunks repositories - gostls13.git/commit
gc: fix arm build
authorRuss Cox <rsc@golang.org>
Mon, 29 Aug 2011 03:29:34 +0000 (23:29 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 29 Aug 2011 03:29:34 +0000 (23:29 -0400)
commit77f0bdce07c1abc8b9bea9102cd49de20864cab1
treecf94adbbed41d0b3f53f82df265485cd17654f0b
parenta3bc7681b54d62a6b54f3b05b05b91e9304c26eb
gc: fix arm build

Escape analysis was incorrectly assuming that
functions without bodies don't leak their
parameters.  This meant that sync/atomic's
TestAddInt64 was allocating x on its stack,
and then x was not properly aligned for use
with the atomic 64-bit instructions.  Obviously
we should figure out the alignment story on 5g
too, but this fix is correct and should restore the
build to 'ok'.

TBR=lvd
CC=golang-dev
https://golang.org/cl/4964047
src/cmd/gc/esc.c
test/escape2.go