From: sandeep Date: Mon, 24 Dec 2001 03:40:22 +0000 (+0000) Subject: Disabled "constExpr" check X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=38f3cafde54cd354fce784c6996ae83702412cda;p=fw%2Fsdcc Disabled "constExpr" check added port->genAssemblerEnd function git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1728 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCglue.c b/src/SDCCglue.c index 1e66c123..7f8f3d70 100644 --- a/src/SDCCglue.c +++ b/src/SDCCglue.c @@ -263,15 +263,18 @@ emitRegularMap (memmap * map, bool addPublics, bool arFlag) if (ival) { // set ival's lineno to where the symbol was defined lineno=ival->lineno=sym->lineDef; - +#if 0 // check if this is a constant expression if (constExprTree(ival->right)) { allocInfo = 0; +#endif eBBlockFromiCode (iCodeFromAst (ival)); allocInfo = 1; +#if 0 } else { werror (E_CONST_EXPECTED, "found expression"); } +#endif } } @@ -1630,6 +1633,9 @@ glue () } copyFile (asmFile, code->oFile); + if (port->genAssemblerEnd) { + port->genAssemblerEnd(asmFile); + } fclose (asmFile); applyToSet (tmpfileSet, closeTmpFiles); applyToSet (tmpfileNameSet, rmTmpFiles);