X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCglue.c;h=7f8f3d70a4d0ad1581b794b374db04df8af23c30;hb=51a1b86316f0b3912a75a5906ef3cfa0d12e6606;hp=1e66c123fd479d78954dff94ff4e555f446e4fb1;hpb=ef203f08aa15a9f5e4f2ad806374a6a1667dcff1;p=fw%2Fsdcc 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);