ref: a1815ba111ef7531c60c1a2e4eaeb9351e0ba791
parent: b64ef1259866bf8d967c6df793bc4fb79c0078ba
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Jan 26 17:13:39 EST 2016
[cc2] Do not allocate data for functions Function definitions are GLOBAL or private, but they don't implie a space allocation.
--- a/cc2/parser.c
+++ b/cc2/parser.c
@@ -377,7 +377,7 @@
case PRIVAT:
case LOCAL:
label(sym);
- if (!ininit)
+ if (!ininit && (sym->type.flags & FUNF) == 0)
allocdata(&sym->type);
break;
case AUTO: