From 57c2e0cc0bcda3d08692abc60f5c85510801801d Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 3 Jul 2007 16:02:04 +0000 Subject: [PATCH] Fixed an error handling SC_EXTERN. git-svn-id: svn://svn.cc65.org/cc65/trunk@3785 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/symtab.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5