]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/gc: fix write barrier fast path on RISC architectures
authorShenghou Ma <minux@golang.org>
Tue, 28 Apr 2015 23:44:00 +0000 (19:44 -0400)
committerMinux Ma <minux@golang.org>
Wed, 29 Apr 2015 00:29:44 +0000 (00:29 +0000)
commit2b7505e28a50f49e85c3e0812a4c4f287b8dfa30
tree549b4acca3e088d687802575a693ed0bd12bcdd8
parente7dd28891ef84684b83242caba3ba338908235a0
cmd/internal/gc: fix write barrier fast path on RISC architectures

They have to read the boolean into a register first and then do
the comparison.

Fixes #10598.

Change-Id: I2b808837a8c6393e1e0778296b6592aaab2b04bf
Signed-off-by: Shenghou Ma <minux@golang.org>
Reviewed-on: https://go-review.googlesource.com/9453
Reviewed-by: Dave Cheney <dave@cheney.net>
src/cmd/internal/gc/cgen.go