From: Russ Cox Date: Fri, 13 May 2011 16:15:46 +0000 (-0400) Subject: 5c, 5g: fix build with too-smart gcc X-Git-Tag: weekly.2011-05-22~78 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2d174db6a6eefd9c0034d0d392db666314dc55c7;p=gostls13.git 5c, 5g: fix build with too-smart gcc R=ken2 CC=golang-dev https://golang.org/cl/4543049 --- diff --git a/src/cmd/5c/peep.c b/src/cmd/5c/peep.c index c15bf0fc4c..8945ee7321 100644 --- a/src/cmd/5c/peep.c +++ b/src/cmd/5c/peep.c @@ -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; } diff --git a/src/cmd/5g/peep.c b/src/cmd/5g/peep.c index 6f36e12d42..ca12d70f26 100644 --- a/src/cmd/5g/peep.c +++ b/src/cmd/5g/peep.c @@ -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; }