]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: create "init" symbol earlier
authorAustin Clements <austin@google.com>
Mon, 12 Nov 2018 21:31:47 +0000 (16:31 -0500)
committerAustin Clements <austin@google.com>
Mon, 12 Nov 2018 22:25:35 +0000 (22:25 +0000)
commitb52db19b983d9b92c013184f7699bba2d0166c10
tree82c56a249676b58df966b2697f089219cfe9d0c7
parent891f99eb43ad86814662549e4121e4e8c30e8b40
cmd/compile: create "init" symbol earlier

We create the "init" symbol and mark it as a function before compiling
to SSA because SSA can initialize this symbol, but it turns out we do
it slightly too late. peekitabs, at least, can also create the "init"
LSym. Move this initialization to just after type-checking.

Fixes the linux-amd64-ssacheck and the android-arm64-wiko-fever
builders.

Updates #27539.

Change-Id: If145952c79d39f75c93b24e35e67fe026dd08329
Reviewed-on: https://go-review.googlesource.com/c/149137
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/main.go