]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: fix stkptrsize calculation
authorRuss Cox <rsc@golang.org>
Thu, 8 Aug 2013 20:44:16 +0000 (16:44 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 8 Aug 2013 20:44:16 +0000 (16:44 -0400)
commit390656affd8993ce6332dca3fa86d57659622fdf
tree9f8eb3ca8ed7da3c6e0b15f4f5afb65916b688c6
parentf91e682cca2eb51a0a8b1511678a5e2b4d8a83de
cmd/gc: fix stkptrsize calculation

I moved the pointer block from one end of the frame
to the other toward the end of working on the last CL,
and of course that made the optimization no longer work.

Now it works again:

0030 (bug361.go:12) DATA    gclocals·0+0(SB)/4,$4
0030 (bug361.go:12) DATA    gclocals·0+4(SB)/4,$3
0030 (bug361.go:12) GLOBL   gclocals·0+0(SB),8,$8

Fixes arm build (this time for sure!).

TBR=golang-dev
CC=cshapiro, golang-dev, iant
https://golang.org/cl/12627044
src/cmd/gc/pgen.c