diff options
author | Russ Cox <rsc@golang.org> | 2014-02-14 00:43:43 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-02-14 00:43:43 -0500 |
commit | 13e4299913af95a45c481923d98dc3729319fa54 (patch) | |
tree | 21f7aae858673332279f03a432fc3e9118877364 /src | |
parent | f3160c00d988e006b7d710571505734c0b495f4a (diff) | |
download | go-13e4299913af95a45c481923d98dc3729319fa54.tar.gz |
cmd/gc: fix build for 'default unsigned char' compilers
TBR=iant
CC=golang-codereviews
https://codereview.appspot.com/63680045
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/gc/plive.c | 2 | ||||
-rw-r--r-- | src/cmd/gc/popt.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/gc/plive.c b/src/cmd/gc/plive.c index d35367298..250d9236b 100644 --- a/src/cmd/gc/plive.c +++ b/src/cmd/gc/plive.c @@ -521,7 +521,7 @@ newcfg(Prog *firstp) // Stop before an unreachable RET, to avoid creating // unreachable control flow nodes. - if(p->link != nil && p->link->as == ARET && p->link->mode == -1) + if(p->link != nil && p->link->as == ARET && p->link->mode == 1) break; // Collect basic blocks with selectgo calls. diff --git a/src/cmd/gc/popt.c b/src/cmd/gc/popt.c index 1f0bdb496..f5067bd0e 100644 --- a/src/cmd/gc/popt.c +++ b/src/cmd/gc/popt.c @@ -155,7 +155,7 @@ fixjmp(Prog *firstp) // this assumption will not hold in the case of an infinite loop // at the end of a function. // Keep the RET but mark it dead for the liveness analysis. - p->mode = -1; + p->mode = 1; } else { if(debug['R'] && debug['v']) print("del %P\n", p); |