]> Cypherpunks repositories - gostls13.git/commit
6l: eliminate dead code, not just the symbols
authorRuss Cox <rsc@golang.org>
Tue, 5 May 2009 19:43:00 +0000 (12:43 -0700)
committerRuss Cox <rsc@golang.org>
Tue, 5 May 2009 19:43:00 +0000 (12:43 -0700)
commit9cba9c8890048c19d000b1fa07a9b20a0e495fe8
tree4ba0ce8c83051dd4b3d6bc667ba1e13c707bdfa4
parenteea33fc69cab59ed314eea799fda4562855619cd
6l: eliminate dead code, not just the symbols

editing the firstp list was ineffective,
because follow rebuilds it from the textp list.

the symbols for dead code were being dropped
from the binary but the code was all still there.

text for fmt.Printf("hello, world\n") drops
from 143945 to 128650.

R=r,ken
DELTA=22  (20 added, 0 deleted, 2 changed)
OCL=28255
CL=28290
src/cmd/6l/span.c
src/cmd/ld/go.c