diff --git a/code/tools/lcc/src/dag.c b/code/tools/lcc/src/dag.c index 420cbe71..459f569a 100644 --- a/code/tools/lcc/src/dag.c +++ b/code/tools/lcc/src/dag.c @@ -519,7 +519,8 @@ void emitcode(void) { (*IR->stabline)(&cp->u.point.src); swtoseg(CODE); } break; case Gen: case Jump: case Label: if (cp->u.forest) - (*IR->emit)(cp->u.forest); break; + (*IR->emit)(cp->u.forest); + break; case Local: if (glevel && IR->stabsym) { (*IR->stabsym)(cp->u.var); swtoseg(CODE); diff --git a/code/tools/lcc/src/expr.c b/code/tools/lcc/src/expr.c index 96eec217..bcf25588 100644 --- a/code/tools/lcc/src/expr.c +++ b/code/tools/lcc/src/expr.c @@ -159,7 +159,8 @@ static Tree unary(void) { if (isarith(p->type)) p = cast(p, promote(p->type)); else - typeerror(ADD, p, NULL); break; + typeerror(ADD, p, NULL); + break; case '-': t = gettok(); p = unary(); p = pointer(p); if (isarith(p->type)) { Type ty = promote(p->type); @@ -170,18 +171,21 @@ static Tree unary(void) { } else p = simplify(NEG, ty, p, NULL); } else - typeerror(SUB, p, NULL); break; + typeerror(SUB, p, NULL); + break; case '~': t = gettok(); p = unary(); p = pointer(p); if (isint(p->type)) { Type ty = promote(p->type); p = simplify(BCOM, ty, cast(p, ty), NULL); } else - typeerror(BCOM, p, NULL); break; + typeerror(BCOM, p, NULL); + break; case '!': t = gettok(); p = unary(); p = pointer(p); if (isscalar(p->type)) p = simplify(NOT, inttype, cond(p), NULL); else - typeerror(NOT, p, NULL); break; + typeerror(NOT, p, NULL); + break; case INCR: t = gettok(); p = unary(); p = incr(INCR, pointer(p), consttree(1, inttype)); break; case DECR: t = gettok(); p = unary(); p = incr(DECR, pointer(p), consttree(1, inttype)); break; case TYPECODE: case SIZEOF: { int op = t; @@ -318,7 +322,8 @@ static Tree postfix(Tree p) { p->type); t = gettok(); } else - error("field name expected\n"); break; + error("field name expected\n"); + break; case DEREF: t = gettok(); p = pointer(p); if (t == ID) { @@ -331,7 +336,8 @@ static Tree postfix(Tree p) { t = gettok(); } else - error("field name expected\n"); break; + error("field name expected\n"); + break; default: return p; } diff --git a/code/tools/lcc/src/stmt.c b/code/tools/lcc/src/stmt.c index 356092bd..ed220d40 100644 --- a/code/tools/lcc/src/stmt.c +++ b/code/tools/lcc/src/stmt.c @@ -184,8 +184,9 @@ void statement(int loop, Swtch swp, int lev) { branch(p->u.l.label); t = gettok(); } else - error("missing label in goto\n"); expect(';'); - break; + error("missing label in goto\n"); + expect(';'); + break; case ID: if (getchr() == ':') { stmtlabel();