mirror of
https://github.com/golang/go
synced 2024-11-21 20:14:52 -07:00
5c, 5g: fix build with too-smart gcc
R=ken2 CC=golang-dev https://golang.org/cl/4543049
This commit is contained in:
parent
ac65eaa5b9
commit
2d174db6a6
@ -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 == (uchar)REGARG)
|
||||
if(v->reg == 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 == (uchar)REGARG)
|
||||
if(v->reg == REGARG)
|
||||
return 3;
|
||||
return 0;
|
||||
}
|
||||
|
@ -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 == (uchar)REGARG)
|
||||
if(v->reg == 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 == (uchar)REGARG)
|
||||
if(v->reg == REGARG)
|
||||
return 3;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user