]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix lineno restoration after SSA compilation
authorMatthew Dempsky <mdempsky@google.com>
Mon, 7 Mar 2016 18:12:19 +0000 (10:12 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 8 Mar 2016 06:02:15 +0000 (06:02 +0000)
commitbeabd872f430b4048c12bab6102df13e8e10013f
tree547cb1d744bd7846a7c2d859c40668e73a3ead9e
parentaea4222f673ee9189ba81548978b091004afe994
cmd/compile: fix lineno restoration after SSA compilation

Without SSA:

$ go build -a -gcflags='-S -ssa=0' runtime 2>&1 | grep 'TEXT.*""\.init(SB)'
        0x0000 00000 ($GOROOT/src/runtime/write_err.go:14)        TEXT    "".init(SB), $88-0

With SSA, before this CL:

$ go build -a -gcflags='-S -ssa=1' runtime 2>&1 | grep 'TEXT.*""\.init(SB)'
        0x0000 00000 ($GOROOT/src/runtime/traceback.go:608)       TEXT    "".init(SB), $152-0

With SSA, after this CL:

$ go build -a -gcflags='-S -ssa=1' runtime 2>&1 | grep 'TEXT.*""\.init(SB)'
        0x0000 00000 ($GOROOT/src/runtime/write_err.go:14)        TEXT    "".init(SB), $152-0

Change-Id: Ida3541e03a1af6ffc753ee5c3abeb653459edbf6
Reviewed-on: https://go-review.googlesource.com/20321
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/pgen.go