]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/gc: fix broken build
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 19 Mar 2015 16:49:25 +0000 (09:49 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 19 Mar 2015 17:12:42 +0000 (17:12 +0000)
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>
src/cmd/internal/gc/walk.go

index 1626c11e45b2c125a497d08534220175da29e32e..2784648a858ae009d98a7f578920eb35e667b0fd 100644 (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)