mirror of
https://github.com/golang/go.git
synced 2024-10-01 23:37:14 +00:00
update 6g to new REGARG convention.
silence gcc warning. R=ken OCL=31583 CL=31583
This commit is contained in:
parent
e11447f7da
commit
a6799963ef
@ -844,7 +844,7 @@ copyu(Prog *p, Adr *v, Adr *s)
|
|||||||
case ACALL: /* funny */
|
case ACALL: /* funny */
|
||||||
if(REGEXT && v->type <= REGEXT && v->type > exregoffset)
|
if(REGEXT && v->type <= REGEXT && v->type > exregoffset)
|
||||||
return 2;
|
return 2;
|
||||||
if(REGARG && v->type == REGARG)
|
if(REGARG >= 0 && v->type == (uchar)REGARG)
|
||||||
return 2;
|
return 2;
|
||||||
|
|
||||||
if(s != A) {
|
if(s != A) {
|
||||||
@ -857,7 +857,7 @@ copyu(Prog *p, Adr *v, Adr *s)
|
|||||||
return 3;
|
return 3;
|
||||||
|
|
||||||
case ATEXT: /* funny */
|
case ATEXT: /* funny */
|
||||||
if(REGARG && v->type == REGARG)
|
if(REGARG >= 0 && v->type == (uchar)REGARG)
|
||||||
return 3;
|
return 3;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user