From: uz Date: Tue, 30 Aug 2011 13:09:34 +0000 (+0000) Subject: For now use the void type for all debug symbols to avoid errors in the X-Git-Tag: V2.13.3~175 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b4afe56ef1e5a1310e608e4c62ac4412afd46730;p=cc65 For now use the void type for all debug symbols to avoid errors in the backends. git-svn-id: svn://svn.cc65.org/cc65/trunk@5287 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/function.c b/src/cc65/function.c index 06676a84e..d646167ba 100644 --- a/src/cc65/function.c +++ b/src/cc65/function.c @@ -355,7 +355,7 @@ static void F_RestoreRegVars (Function* F) if (!F_HasVoidReturn (F)) { g_restore (CF_CHAR | CF_FORCECHAR); } -} +} @@ -368,7 +368,7 @@ static void EmitDebugInfo (void) const SymTable* Tab = Desc->SymTab; /* Output info for the function itself */ - AddTextLine ("\t.dbg\tfunc, \"%s\", \"\", %s, \"%s\"", + AddTextLine ("\t.dbg\tfunc, \"%s\", \"00\", %s, \"%s\"", Sym->Name, (Sym->Flags & SC_EXTERN)? "extern" : "static", Sym->AsmName); @@ -378,14 +378,14 @@ static void EmitDebugInfo (void) while (Sym) { if ((Sym->Flags & (SC_CONST|SC_TYPE)) == 0) { if (Sym->Flags & SC_AUTO) { - AddTextLine ("\t.dbg\tsym, \"%s\", \"\", auto, %d", + AddTextLine ("\t.dbg\tsym, \"%s\", \"00\", auto, %d", Sym->Name, Sym->V.Offs); } else if (Sym->Flags & SC_REGISTER) { - AddTextLine ("\t.dbg\tsym, \"%s\", \"\", register, \"regbank\", %d", + AddTextLine ("\t.dbg\tsym, \"%s\", \"00\", register, \"regbank\", %d", Sym->Name, Sym->V.R.RegOffs); } else { - AddTextLine ("\t.dbg\tsym, \"%s\", \"\", %s, \"%s\"", + AddTextLine ("\t.dbg\tsym, \"%s\", \"00\", %s, \"%s\"", Sym->Name, (Sym->Flags & SC_EXTERN)? "extern" : "static", Sym->AsmName);