commit f7fddfcd7659f0545c8b3eb367f11f3f68dab7c0
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Mon Aug 17 15:58:12 2015 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Mon Aug 17 15:58:12 2015 +0200

    Remove legacy error recovery code in compound()
    
    The error recovery must be rewritten, so this code is disturbing.

diff --git a/cc1/stmt.c b/cc1/stmt.c
index 294ab5d..47c2765 100644
--- 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);

Reply via email to