From 2317811f2b1197fd0416bb53b1c6a087d682e500 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 15 Dec 2012 13:13:40 +0900 Subject: [PATCH] Don't allocate space for locals for builtin functions. While the symtab is needed for debug info, there is no need for any actual data to be allocated for a builtin function's locals. --- tools/qfcc/source/function.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/qfcc/source/function.c b/tools/qfcc/source/function.c index 747599ae1..565e1e4d9 100644 --- a/tools/qfcc/source/function.c +++ b/tools/qfcc/source/function.c @@ -620,6 +620,7 @@ build_builtin_function (symbol_t *sym, expr_t *bi_val, int far) // for debug info build_scope (sym, current_symtab); + sym->s.func->symtab->space->size = 0; return sym->s.func; }