commit a1815ba111ef7531c60c1a2e4eaeb9351e0ba791
parent b64ef1259866bf8d967c6df793bc4fb79c0078ba
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Tue, 26 Jan 2016 22:13:39 +0100
[cc2] Do not allocate data for functions
Function definitions are GLOBAL or private, but they don't
implie a space allocation.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cc2/parser.c b/cc2/parser.c
@@ -377,7 +377,7 @@ decl(Symbol *sym)
case PRIVAT:
case LOCAL:
label(sym);
- if (!ininit)
+ if (!ininit && (sym->type.flags & FUNF) == 0)
allocdata(&sym->type);
break;
case AUTO: