]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: correct liveness for various non-returning functions
authorRuss Cox <rsc@golang.org>
Fri, 14 Feb 2014 05:38:24 +0000 (00:38 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 14 Feb 2014 05:38:24 +0000 (00:38 -0500)
commitaf545660d59edeffb52b8b72bec08f8c7b33cf23
tree46a8773aee3038bf8ba255139f8e29435a3be803
parenteca55f5ac09221155de7b45e143ad863222ed976
cmd/gc: correct liveness for various non-returning functions

When the liveness code doesn't know a function doesn't return
(but the generated code understands that), the liveness analysis
invents a control flow edge that is not really there, which can cause
variables to seem spuriously live. This is particularly bad when the
variables are uninitialized.

TBR=iant
CC=golang-codereviews
https://golang.org/cl/63720043
src/cmd/gc/popt.c
test/live.go