Skip to content

Commit

Permalink
cmd/internal/gc: fix broken build
Browse files Browse the repository at this point in the history
CL 7697 caused doasm failures on 386:

runtime/append_test.go:1: doasm: notfound ft=2 tt=20 00112 (runtime/iface_test.go:207)	CMPL	$0, BX 2 20

I think that this should be fixed in liblink,
but in the meantime, work around the problem
by instead generating CMPL BX, $0.

Change-Id: I9c572f8f15fc159507132cf4ace8d7a328a3eb4a
Reviewed-on: https://go-review.googlesource.com/7810
Reviewed-by: Keith Randall <[email protected]>
  • Loading branch information
josharian committed Mar 19, 2015
1 parent 25e793d commit 6d44844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/internal/gc/walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ func walkexpr(np **Node, init **NodeList) {
case fromKind == "I" && toKind == "E",
fromKind == "E" && toKind == "E":
tab := Nod(OITAB, from, nil)
fast = Nod(ONE, tab, nodnil())
fast = Nod(ONE, nodnil(), tab)
}
if fast != nil {
n = Nod(OAS, ok, fast)
Expand Down

0 comments on commit 6d44844

Please sign in to comment.