diff --git a/util/ncgg/output.c b/util/ncgg/output.c index 298a008c5..0b0f54612 100644 --- a/util/ncgg/output.c +++ b/util/ncgg/output.c @@ -261,6 +261,8 @@ outincludes() { outregs() { register i,j,k; short rset[SZOFSET(MAXREGS)]; + short clashlist[MAXREGS*MAXREGS]; + int iclashlist = 0; int t,ready; @@ -308,12 +310,21 @@ outregs() { fprintf(ctable,"},{"); for (j=0;j=0); fprintf(ctable,"},\n"); } - fprintf(ctable,"};\n\n"); + fprintf(ctable,"};\n\n short clashlist[] = {\n\t"); + for (i = 0; i < iclashlist; i++) { + fprintf(ctable, "%d, ", clashlist[i]); + if (clashlist[i] == 0) fprintf(ctable, "\n\t"); + } + fprintf(ctable, "0};\n\n"); } outregvars() {