ref: 34628a2ca10f9ca38785ec744ffc4b5e012fe86e
parent: c01089f9b88ed71f3adcd21814216ea3dc262cf6
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Feb 10 12:45:41 EST 2015
Fix definition of for loops in cc1 There was an error, because for expected a ';' instead of a ')' before the statement of the body of the loop.
--- a/cc1/stmt.c
+++ b/cc1/stmt.c
@@ -108,7 +108,7 @@
econd = (yytoken != ';') ? expr() : NULL;
expect(';');
einc = (yytoken != ')') ? expr() : NULL;
- expect(';');
+ expect(')');
emitexp(einit);
emitjump(cond, NULL);
--
⑨