Commit 2d310a00 authored by Russ Cox's avatar Russ Cox

5c, 5g: another attempt at silencing gcc

R=ken2
CC=golang-dev
https://golang.org/cl/4535074
parent 40745a57
......@@ -69,7 +69,7 @@ struct Adr
Sym* sym;
char type;
char reg;
uchar reg;
char name;
char etype;
};
......@@ -83,7 +83,7 @@ struct Prog
Prog* link;
int32 lineno;
char as;
char reg;
uchar reg;
uchar scond;
};
#define P ((Prog*)0)
......
......@@ -1100,7 +1100,7 @@ copyu(Prog *p, Adr *v, Adr *s)
if(v->type == D_REG) {
if(v->reg <= REGEXT && v->reg > exregoffset)
return 2;
if(v->reg == REGARG)
if(v->reg == (uchar)REGARG)
return 2;
}
if(v->type == D_FREG)
......@@ -1118,7 +1118,7 @@ copyu(Prog *p, Adr *v, Adr *s)
case ATEXT: /* funny */
if(v->type == D_REG)
if(v->reg == REGARG)
if(v->reg == (uchar)REGARG)
return 3;
return 0;
}
......
......@@ -26,7 +26,7 @@ struct Addr
int width;
uchar type;
char name;
char reg;
uchar reg;
char pun;
uchar etype;
};
......@@ -41,7 +41,7 @@ struct Prog
Addr to; // dst address
Prog* link; // next instruction in this func
void* regp; // points to enclosing Reg struct
char reg; // doubles as width in DATA op
uchar reg; // doubles as width in DATA op
uchar scond;
};
......
......@@ -1134,7 +1134,7 @@ copyu(Prog *p, Adr *v, Adr *s)
if(v->type == D_REG) {
if(v->reg <= REGEXT && v->reg > exregoffset)
return 2;
if(v->reg == REGARG)
if(v->reg == (uchar)REGARG)
return 2;
}
if(v->type == D_FREG)
......@@ -1152,7 +1152,7 @@ copyu(Prog *p, Adr *v, Adr *s)
case ATEXT: /* funny */
if(v->type == D_REG)
if(v->reg == REGARG)
if(v->reg == (uchar)REGARG)
return 3;
return 0;
}
......
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