]> Cypherpunks repositories - gostls13.git/commitdiff
update 6g to new REGARG convention.
authorRuss Cox <rsc@golang.org>
Tue, 14 Jul 2009 06:30:30 +0000 (23:30 -0700)
committerRuss Cox <rsc@golang.org>
Tue, 14 Jul 2009 06:30:30 +0000 (23:30 -0700)
silence gcc warning.

R=ken
OCL=31583
CL=31583

src/cmd/6g/peep.c

index 6a12940bab1d955a65f519e842e71d87eda240b1..4cfdf59e0de9efc06cd940f111c49a0fff69dcc9 100644 (file)
@@ -844,7 +844,7 @@ copyu(Prog *p, Adr *v, Adr *s)
        case ACALL:     /* funny */
                if(REGEXT && v->type <= REGEXT && v->type > exregoffset)
                        return 2;
-               if(REGARG && v->type == REGARG)
+               if(REGARG >= 0 && v->type == (uchar)REGARG)
                        return 2;
 
                if(s != A) {
@@ -857,7 +857,7 @@ copyu(Prog *p, Adr *v, Adr *s)
                return 3;
 
        case ATEXT:     /* funny */
-               if(REGARG && v->type == REGARG)
+               if(REGARG >= 0 && v->type == (uchar)REGARG)
                        return 3;
                return 0;
        }