]> git.sur5r.net Git - cc65/commitdiff
Add a goto indirect jump from pointer
authorLauri Kasanen <cand@gmx.com>
Wed, 10 Apr 2019 11:46:07 +0000 (14:46 +0300)
committergreg-king5 <greg.king5@verizon.net>
Sun, 21 Apr 2019 16:46:03 +0000 (12:46 -0400)
src/cc65/symentry.h
src/cc65/symtab.c

index 73a8a72e73c32f9f23e1022c0628ae9c9a22aecd..abadc35c2f0fe7be1d74a0225496a49a2ff280dc 100644 (file)
@@ -58,6 +58,7 @@
 
 struct Segments;
 struct LiteralPool;
+struct CodeEntry;
 
 
 
@@ -138,6 +139,7 @@ struct SymEntry {
         struct {
             unsigned            Label;
             Collection          *DefsOrRefs;
+            struct CodeEntry    *IndJumpFrom;
         } L;
 
         /* Value of SP adjustment needed after forward 'goto' */
index 7adafc413132a655ef22c29273181bad18010623..9a767fd0e0ce3c43007b66c7a66ae0b114e38e78 100644 (file)
@@ -777,6 +777,7 @@ SymEntry* AddLabelSym (const char* Name, unsigned Flags)
 
         /* Set a new label number */
         Entry->V.L.Label = GetLocalLabel ();
+        Entry->V.L.IndJumpFrom = NULL;
 
         /* Create Collection for label definition and references */
         Entry->V.L.DefsOrRefs = NewCollection ();