Browse Source

uniformize temporary names in minic

Quentin Carbonneaux 10 years ago
parent
commit
fbf74646e1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      minic/minic.y

+ 2 - 2
minic/minic.y

@@ -709,7 +709,7 @@ prot: IDENT '(' par0 ')'
 		for (;;) {
 		for (;;) {
 			s = varget(n->u.v);
 			s = varget(n->u.v);
 			fprintf(of, "%c ", irtyp(s->ctyp));
 			fprintf(of, "%c ", irtyp(s->ctyp));
-			fprintf(of, "%%tmp%d", tmp++);
+			fprintf(of, "%%t%d", tmp++);
 			n = n->r;
 			n = n->r;
 			if (n)
 			if (n)
 				fprintf(of, ", ");
 				fprintf(of, ", ");
@@ -722,7 +722,7 @@ prot: IDENT '(' par0 ')'
 		s = varget(n->u.v);
 		s = varget(n->u.v);
 		m = SIZE(s->ctyp);
 		m = SIZE(s->ctyp);
 		fprintf(of, "\t%%%s =l alloc%d %d\n", n->u.v, m, m);
 		fprintf(of, "\t%%%s =l alloc%d %d\n", n->u.v, m, m);
-		fprintf(of, "\tstore%c %%tmp%d", irtyp(s->ctyp), t);
+		fprintf(of, "\tstore%c %%t%d", irtyp(s->ctyp), t);
 		fprintf(of, ", %%%s\n", n->u.v);
 		fprintf(of, ", %%%s\n", n->u.v);
 	}
 	}
 };
 };