From: johanknol Date: Sun, 16 Sep 2001 13:52:22 +0000 (+0000) Subject: fixed bug #436360 part 1 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=202ab0a493dd359d845edb90d2cce51310ab74c8;p=fw%2Fsdcc fixed bug #436360 part 1 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1274 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCmem.c b/src/SDCCmem.c index 4692be48..890f81ea 100644 --- a/src/SDCCmem.c +++ b/src/SDCCmem.c @@ -581,6 +581,11 @@ allocLocal (symbol * sym) /* this is automatic */ + if (!IS_SPEC(sym->type) && SPEC_OCLS(sym->etype)) { + allocIntoSeg (sym); + return; + } + /* if it to be placed on the stack */ if (options.stackAuto || reentrant) { sym->onStack = 1;