]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: fix build for 'default unsigned char' compilers
authorRuss Cox <rsc@golang.org>
Fri, 14 Feb 2014 05:43:43 +0000 (00:43 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 14 Feb 2014 05:43:43 +0000 (00:43 -0500)
TBR=iant
CC=golang-codereviews
https://golang.org/cl/63680045

src/cmd/gc/plive.c
src/cmd/gc/popt.c

index d353672985e48d0c5c4796fab86dab317f2bf1b2..250d9236b3f5563965d59966518f618eb7d2397d 100644 (file)
@@ -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.
index 1f0bdb496a6fe85812fbb1ff7aca877457ccc782..f5067bd0e1aa2d5cc799b5f3cdec9089154220af 100644 (file)
@@ -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);