]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: fix stackalloc handling of zero-aligned variables
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 20 Jul 2015 22:24:51 +0000 (15:24 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 21 Jul 2015 13:49:10 +0000 (13:49 +0000)
commit67bfd6956494173a0e2fa6b20bf61bf7b57589e6
tree964c98a79fdc6c819cf08781d9e110e88132cc59
parent26f135d7c1a55cb7acaec1eac20e97b0f3b2cf10
[dev.ssa] cmd/compile: fix stackalloc handling of zero-aligned variables

Prior to this fix, a zero-aligned variable such as a flags
variable would reset n to 0.

While we're here, log the stack layout so that debugging
and reading the generated assembly is easier.

Change-Id: I18ef83ea95b6ea877c83f2e595e14c48c9ad7d84
Reviewed-on: https://go-review.googlesource.com/12439
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/stackalloc.go