]> Cypherpunks.ru repositories - gostls13.git/commit
[release-branch.go1.9] cmd/compile: remove gc.Sysfunc calls from 387 backend
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 8 Aug 2017 23:38:25 +0000 (16:38 -0700)
committerKeith Randall <khr@golang.org>
Tue, 22 Aug 2017 18:24:54 +0000 (18:24 +0000)
commit9a4e7942ea93d432e29d2567aefccb6acc78ab43
treeff55408a079b5a77485ef6f41eb329a38713d5c1
parentff38035a62a9cf9e8222016ae15ee52a7ce260dc
[release-branch.go1.9] cmd/compile: remove gc.Sysfunc calls from 387 backend

[This is a cherry-pick of CL 54090 to the 1.9 release branch.]

gc.Sysfunc must not be called concurrently.
We set up runtime routines used by the backend
prior to doing any backend compilation.
I missed the 387 ones; fix that.

Sysfunc should have been unexported during 1.9.
I will rectify that in a subsequent CL.

Fixes #21352

Change-Id: I485bb1867b46d8e5cf64bc820b8963576dc16174
Reviewed-on: https://go-review.googlesource.com/55970
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/go.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/x86/387.go