From: johanknol Date: Fri, 24 Jan 2003 13:51:11 +0000 (+0000) Subject: fixed bug #661910 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=52f3ed005225f4a63ead32f77178139243437562;p=fw%2Fsdcc fixed bug #661910 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2169 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index f001cf81..a7440963 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-01-24 + + * src/SDCCast.c (createIvalCharPtr): fixed bug #661910 + 2003-01-24 Bernhard Held * src/mcs51/peeph.def: better assembler identation by Frieder diff --git a/src/SDCCast.c b/src/SDCCast.c index c92f179b..3651b786 100644 --- a/src/SDCCast.c +++ b/src/SDCCast.c @@ -966,12 +966,6 @@ createIvalCharPtr (ast * sym, sym_link * type, ast * iexpr) newAst_VALUE (valueFromLit ((float) i))), newAst_VALUE (valueFromLit (*s)))); - // now we don't need iexpr's symbol anymore - { - symbol *sym=AST_SYMBOL(iexpr); - memmap *segment=SPEC_OCLS(sym->etype); - deleteSetItem(&segment->syms, sym); - } return decorateType (resolveSymbols (rast)); } @@ -1057,8 +1051,11 @@ gatherAutoInit (symbol * autoChain) { /* resolve the symbols in the ival */ - if (sym->ival) + if (sym->ival) { + noAlloc++; resolveIvalSym (sym->ival); + noAlloc--; + } /* if this is a static variable & has an */ /* initial value the code needs to be lifted */