]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: handle variable initialization by block move in liveness
authorRuss Cox <rsc@golang.org>
Fri, 14 Feb 2014 03:45:16 +0000 (22:45 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 14 Feb 2014 03:45:16 +0000 (22:45 -0500)
commit91b1f7cb15700f39ca63c4e056b41d9b04100e97
treefcba834391e0b2297e7d0a46bcba50e3432790f9
parent7addda685d9f624479cd2248a86a16b5a810f225
cmd/gc: handle variable initialization by block move in liveness

Any initialization of a variable by a block copy or block zeroing
or by multiple assignments (componentwise copying or zeroing
of a multiword variable) needs to emit a VARDEF. These cases were not.

Fixes #7205.

TBR=iant
CC=golang-codereviews
https://golang.org/cl/63650044
src/cmd/5g/cgen.c
src/cmd/6g/cgen.c
src/cmd/8g/cgen.c
src/cmd/gc/pgen.c
src/cmd/gc/plive.c
test/live.go