ref: 66ece20b08a2c9fc5ee1ae0bd8c3f2dc2042d168
parent: bc3aafa3164bfd45470e72c71967110aae3bca61
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Dec 23 03:57:01 EST 2016
[cc1] Fix popctx() Last commit changed the order of the operations (first decrement curctx and then kill symbols), so it was necessary to change the condition of the loop over head elements.
--- a/cc1/symbol.c
+++ b/cc1/symbol.c
@@ -106,7 +106,7 @@
{
Symbol *next, *sym;
- for (sym = head; sym && sym->ctx > curctx; sym = next) {
+ for (sym = head; sym && sym->ctx == curctx; sym = next) {
next = sym->next;
killsym(sym);
}