Disabled "constExpr" check
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 24 Dec 2001 03:40:22 +0000 (03:40 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 24 Dec 2001 03:40:22 +0000 (03:40 +0000)
added port->genAssemblerEnd function

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1728 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCglue.c

index 1e66c123fd479d78954dff94ff4e555f446e4fb1..7f8f3d70a4d0ad1581b794b374db04df8af23c30 100644 (file)
@@ -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);