]> git.sur5r.net Git - cc65/blobdiff - src/cc65/asmcode.c
Fixed two compiler warnings.
[cc65] / src / cc65 / asmcode.c
index e5fff9af082179853e4fa5041da916bffa4493ac..c70675c011f4f49522b794b18ba9cac6c600c40e 100644 (file)
@@ -38,7 +38,6 @@
 
 /* cc65 */
 #include "asmcode.h"
-#include "codeopt.h"
 #include "codeseg.h"
 #include "dataseg.h"
 #include "segments.h"
@@ -70,11 +69,6 @@ void RemoveCodeRange (const CodeMark* Start, const CodeMark* End)
         return;
     }
 
-    /* We can only delete the range if End is the end of the code segment or
-     * if both SP values are identical.
-     */
-    CHECK (Start->SP == End->SP || End->Pos == CS_GetEntryCount (CS->Code));
-
     /* Delete the range */
     CS_DelCodeRange (CS->Code, Start->Pos, End->Pos-1);
 }
@@ -129,12 +123,8 @@ void WriteAsmOutput (void)
     SymTab = GetGlobalSymTab ();
     Entry  = SymTab->SymHead;
     while (Entry) {
-               if (IsTypeFunc (Entry->Type)            &&
-                   SymIsDef (Entry)                    &&
-                   (Entry->Flags & (SC_REF | SC_EXTERN)) != 0) {
-                   /* Function which is defined and referenced or extern */
-                   CS_MergeLabels (Entry->V.F.Seg->Code);
-                   RunOpt (Entry->V.F.Seg->Code);
+               if (SymIsOutputFunc (Entry)) {
+            /* Function which is defined and referenced or extern */
                    OutputSegments (Entry->V.F.Seg);
                }
                Entry = Entry->NextSym;