[hackers] [scc] Fix elif() || Roberto E. Vargas Caballero
commit e172a54f741c15f19a7a9df39c75a301ab784a80
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Oct 5 16:43:08 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Oct 5 16:43:08 2015 +0200
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.
diff --git a/cc1/cpp.c b/cc1/cpp.c
index 4ed4ffb..733cab2 100644
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
_AT_@ -635,6 +635,7 @@ static void
elif(void)
{
elseclause();
+ --cppctx;
cppif();
}
Received on Mon Oct 05 2015 - 16:44:23 CEST
This archive was generated by hypermail 2.3.0
: Mon Oct 05 2015 - 16:48:13 CEST