scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit f7fddfcd7659f0545c8b3eb367f11f3f68dab7c0
parent 8a62641325823bc830ca03e1ab2c3d63e0a36922
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 17 Aug 2015 15:58:12 +0200

Remove legacy error recovery code in compound()

The error recovery must be rewritten, so this code is disturbing.

Diffstat:
Mcc1/stmt.c | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/cc1/stmt.c b/cc1/stmt.c @@ -301,14 +301,10 @@ blockit(Symbol *lbreak, Symbol *lcont, Caselist *lswitch) void compound(Symbol *lbreak, Symbol *lcont, Caselist *lswitch) { - extern jmp_buf recover; - pushctx(); expect('{'); for (;;) { - setsafe(END_COMP); - setjmp(recover); if (yytoken == '}') break; blockit(lbreak, lcont, lswitch);