]> Cypherpunks repositories - gostls13.git/commit
[dev.power64] cmd/9c: fix switch bug
authorShenghou Ma <minux@golang.org>
Thu, 7 Aug 2014 22:34:25 +0000 (18:34 -0400)
committerShenghou Ma <minux@golang.org>
Thu, 7 Aug 2014 22:34:25 +0000 (18:34 -0400)
commit95e8a3a1da2ba736c685424ecd9f23f6e78f27aa
tree718fc043f35a5cad63948f8e2a61b052fbeb86b6
parent4be75c8f26aaa2715505807a3dd3b0d9d8ce3f59
[dev.power64] cmd/9c: fix switch bug

The cmd/cc bundled with 9c has additional code compared to our cmd/cc, and
without those code, 9c couldn't handle switch statement where the expression
is not just a simple int32 or int64 variable (e.g. g->status or int8 variable).

All credit goes to rsc.

LGTM=rsc
R=rsc, iant
CC=golang-codereviews
https://golang.org/cl/125840043
src/cmd/9c/swt.c