From: cuz Date: Tue, 3 Jul 2007 16:02:04 +0000 (+0000) Subject: Fixed an error handling SC_EXTERN. X-Git-Tag: V2.12.0~71 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=57c2e0cc0bcda3d08692abc60f5c85510801801d;p=cc65 Fixed an error handling SC_EXTERN. git-svn-id: svn://svn.cc65.org/cc65/trunk@3785 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/symtab.c b/src/cc65/symtab.c index a18b6535e..8990f48c8 100644 --- a/src/cc65/symtab.c +++ b/src/cc65/symtab.c @@ -674,6 +674,8 @@ SymEntry* AddLocalSym (const char* Name, const Type* T, unsigned Flags, int Offs } else if ((Flags & SC_REGISTER) == SC_REGISTER) { Entry->V.R.RegOffs = Offs; Entry->V.R.SaveOffs = StackPtr; + } else if ((Flags & SC_EXTERN) == SC_EXTERN) { + Entry->V.Label = Offs; } else if ((Flags & SC_STATIC) == SC_STATIC) { /* Generate the assembler name from the label number */ Entry->V.Label = Offs;