]> git.sur5r.net Git - cc65/blobdiff - src/cc65/codeseg.c
cleanup
[cc65] / src / cc65 / codeseg.c
index 116b67b3027efd3032253490057b62c964fbf0c0..ba89ccddad4742ba07d0c63b81ea2f2c3c532e84 100644 (file)
@@ -68,7 +68,6 @@ static void MoveLabelsToPool (CodeSeg* S, CodeEntry* E)
     unsigned LabelCount = GetCodeLabelCount (E);
     while (LabelCount--) {
        CodeLabel* L = GetCodeLabel (E, LabelCount);
-       L->Flags &= ~LF_DEF;
        L->Owner = 0;
        CollAppend (&S->Labels, L);
     }
@@ -966,6 +965,11 @@ void OutputCodeSeg (const CodeSeg* S, FILE* F)
        OutputCodeEntry (E, F);
     }
 
+    /* If debug info is enabled, terminate the last line number information */
+    if (DebugInfo) {
+       fprintf (F, "\t.dbg\tline\n");
+    }
+
     /* If this is a segment for a function, leave the function */
     if (S->Func) {
        fprintf (F, "\n.endproc\n\n");