From 2d174db6a6eefd9c0034d0d392db666314dc55c7 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 13 May 2011 12:15:46 -0400 Subject: [PATCH] 5c, 5g: fix build with too-smart gcc R=ken2 CC=golang-dev https://golang.org/cl/4543049 --- src/cmd/5c/peep.c | 4 ++-- src/cmd/5g/peep.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cmd/5c/peep.c b/src/cmd/5c/peep.c index c15bf0fc4cd..8945ee73214 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 6f36e12d42e..ca12d70f263 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; }