diff --git a/mach/proto/ncg/codegen.c b/mach/proto/ncg/codegen.c index 7157656f2..f214c87c4 100644 --- a/mach/proto/ncg/codegen.c +++ b/mach/proto/ncg/codegen.c @@ -256,7 +256,9 @@ if (Debug) c3_p regcp[MAXCREG]; rl_p regls[MAXCREG]; c3_p cp,findcoerc(); +#ifdef MAXSPLIT int sret; +#endif int stackpad; struct perm *tup,*ntup,*besttup,*tuples(); diff --git a/mach/proto/ncg/reg.c b/mach/proto/ncg/reg.c index 861b9419b..9ebdb8bf5 100644 --- a/mach/proto/ncg/reg.c +++ b/mach/proto/ncg/reg.c @@ -20,7 +20,9 @@ static char rcsid[] = "$Header$"; chrefcount(regno,amount,tflag) { register struct reginfo *rp; +#if MAXMEMBERS != 0 register i; +#endif rp= &machregs[regno]; #if MAXMEMBERS!=0 @@ -40,7 +42,9 @@ chrefcount(regno,amount,tflag) { getrefcount(regno) { register struct reginfo *rp; +#if MAXMEMBERS != 0 register i,maxcount; +#endif rp= &machregs[regno]; #if MAXMEMBERS!=0 diff --git a/mach/proto/ncg/subr.c b/mach/proto/ncg/subr.c index 2a57c2ce4..957ac974b 100644 --- a/mach/proto/ncg/subr.c +++ b/mach/proto/ncg/subr.c @@ -52,7 +52,9 @@ instance(instno,token) register token_p token; { register inst_p inp; int i; register token_p tp; +#if MAXMEMBERS != 0 struct reginfo *rp; +#endif int regno; result_t result; @@ -145,7 +147,9 @@ instance(instno,token) register token_p token; { cinstance(instno,token,tp,regno) register token_p token,tp; { register inst_p inp; int i; +#if MAXMEMBERS != 0 struct reginfo *rp; +#endif result_t result; int sh; /* saved stackheight */