From a6799963ef2e2a67d8eed0bb4d1f6b3c8062cad9 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 13 Jul 2009 23:30:30 -0700 Subject: [PATCH] update 6g to new REGARG convention. silence gcc warning. R=ken OCL=31583 CL=31583 --- src/cmd/6g/peep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/6g/peep.c b/src/cmd/6g/peep.c index 6a12940bab1..4cfdf59e0de 100644 --- a/src/cmd/6g/peep.c +++ b/src/cmd/6g/peep.c @@ -844,7 +844,7 @@ copyu(Prog *p, Adr *v, Adr *s) case ACALL: /* funny */ if(REGEXT && v->type <= REGEXT && v->type > exregoffset) return 2; - if(REGARG && v->type == REGARG) + if(REGARG >= 0 && v->type == (uchar)REGARG) return 2; if(s != A) { @@ -857,7 +857,7 @@ copyu(Prog *p, Adr *v, Adr *s) return 3; case ATEXT: /* funny */ - if(REGARG && v->type == REGARG) + if(REGARG >= 0 && v->type == (uchar)REGARG) return 3; return 0; }