shithub: scc

Download patch

ref: e172a54f741c15f19a7a9df39c75a301ab784a80
parent: c484ab23ccfb44b48143d8dd77e8f281ba8b012b
author: Roberto E. Vargas Caballero <[email protected]>
date: Mon Oct 5 12:43:08 EDT 2015

Fix elif()

Elif() calls to cppif() to test the condition, but cppif()
increments the cpp context, which must not be incremented
because the else part of elif should already decrement it.

--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -635,6 +635,7 @@
 elif(void)
 {
 	elseclause();
+	--cppctx;
 	cppif();
 }