1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-08 15:29:37 +00:00

Add a goto indirect jump from pointer

This commit is contained in:
Lauri Kasanen 2019-04-10 14:46:07 +03:00 committed by greg-king5
parent 37f00e6644
commit c2220f3c30
2 changed files with 3 additions and 0 deletions

View 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' */

View 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 ();