]> Cypherpunks repositories - gostls13.git/commit
cmd/5g: fix register opt bug
authorRuss Cox <rsc@golang.org>
Sat, 22 Sep 2012 14:01:35 +0000 (10:01 -0400)
committerRuss Cox <rsc@golang.org>
Sat, 22 Sep 2012 14:01:35 +0000 (10:01 -0400)
commit658482d70f10962e44801565f059e26d85bf4746
treed01b5ec7f0765d6dfe512e6dbda5205303a4282e
parent46f379cc2cb26f1b1ddc9dc385403a664ced3f8f
cmd/5g: fix register opt bug

The width was not being set on the address, which meant
that the optimizer could not find variables that overlapped
with it and mark them as having had their address taken.
This let to the compiler believing variables had been set
but never used and then optimizing away the set.

Fixes #4129.

R=ken2
CC=golang-dev
https://golang.org/cl/6552059
src/cmd/5g/gsubr.c
src/cmd/5g/reg.c
src/cmd/6g/reg.c
src/cmd/8g/reg.c