[hackers] [scc] Remove legacy error recovery code in compound() || Roberto E. Vargas Caballero
commit f7fddfcd7659f0545c8b3eb367f11f3f68dab7c0
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Aug 17 15:58:12 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
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
_AT_@ -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);
Received on Tue Aug 18 2015 - 10:02:55 CEST
This archive was generated by hypermail 2.3.0
: Tue Aug 18 2015 - 10:12:19 CEST