Commit f0023cf1 authored by Russ Cox's avatar Russ Cox

cmd/gc: fix build for 'default unsigned char' compilers

TBR=iant
CC=golang-codereviews
https://golang.org/cl/63680045
parent 6a9b9888
...@@ -521,7 +521,7 @@ newcfg(Prog *firstp) ...@@ -521,7 +521,7 @@ newcfg(Prog *firstp)
// Stop before an unreachable RET, to avoid creating // Stop before an unreachable RET, to avoid creating
// unreachable control flow nodes. // 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; break;
// Collect basic blocks with selectgo calls. // Collect basic blocks with selectgo calls.
......
...@@ -155,7 +155,7 @@ fixjmp(Prog *firstp) ...@@ -155,7 +155,7 @@ fixjmp(Prog *firstp)
// this assumption will not hold in the case of an infinite loop // this assumption will not hold in the case of an infinite loop
// at the end of a function. // at the end of a function.
// Keep the RET but mark it dead for the liveness analysis. // Keep the RET but mark it dead for the liveness analysis.
p->mode = -1; p->mode = 1;
} else { } else {
if(debug['R'] && debug['v']) if(debug['R'] && debug['v'])
print("del %P\n", p); print("del %P\n", p);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment