1
0
mirror of https://github.com/golang/go synced 2024-11-19 02:54:42 -07:00

cmd/internal/gc: fix broken build

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 <khr@golang.org>
This commit is contained in:
Josh Bleecher Snyder 2015-03-19 09:49:25 -07:00
parent 25e793d7ea
commit 6d448440d5

View File

@ -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)