]> Cypherpunks repositories - gostls13.git/commit
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)
committerJosh Bleecher Snyder <josharian@gmail.com>
Wed, 9 Aug 2017 00:19:58 +0000 (00:19 +0000)
commit2fe53d8d55e93602a8fcda7bf78385d93da58da4
tree186f5d80ff39c2c3a7fd173897cd872a6669cac3
parent6b53dd4f2b3a30b010f3c0cc5dabc8a7ad896c15
cmd/compile: remove gc.Sysfunc calls from 387 backend

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: I8386eaa1e05879c25c672b9c9fc693c938e9aeb6
Reviewed-on: https://go-review.googlesource.com/54090
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Avelino <t@avelino.xxx>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/go.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/x86/387.go