shithub: scc

Download patch

ref: 37c543332c819df9b16eceb732a727992af7a7d4
parent: f5199492fb98c0b6c2034041e6865de4dabaac33
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat May 9 13:53:17 EDT 2015

Do not try to recover from declearations

After found a ';' we can not be sure that we will have
another declaration, so it is better to return.

--- a/cc1/decl.c
+++ b/cc1/decl.c
@@ -431,7 +431,8 @@
 	extern jmp_buf recover;
 
 	setsafe(END_DECL);
-	setjmp(recover);
+	if (setjmp(recover))
+		return;
 	tp = specifier(&sclass);
 	if (accept(';'))
 		return;