X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCClabel.c;h=0b6f7c0ea1b1f56ad8585e1820c10869579f178c;hb=24b38610695ad1df39fb34e5e63be583035e2e21;hp=99e7252a237550574614dae93a4843bcca17bc88;hpb=1015a782aafa0d10308550a8675dd4b89f7d93ed;p=fw%2Fsdcc diff --git a/src/SDCClabel.c b/src/SDCClabel.c index 99e7252a..0b6f7c0e 100644 --- a/src/SDCClabel.c +++ b/src/SDCClabel.c @@ -28,7 +28,7 @@ hTab *labelRef = NULL; hTab *labelDef = NULL; /*-----------------------------------------------------------------*/ -/* buildLabelRefTable - creates an hashTable of label referneces */ +/* buildLabelRefTable - creates an hashTable of label references */ /*-----------------------------------------------------------------*/ void buildLabelRefTable (iCode * ic) @@ -83,7 +83,7 @@ labelGotoNext (iCode * ic) if (loop->op == GOTO && /* if this is a goto */ loop->next && /* and we have a next one */ loop->next->op == LABEL && /* next one is a label */ - loop->next->argLabel.label->key == loop->argLabel.label->key) /* same label */ + loop->next->label->key == loop->label->key) /* same label */ { loop->prev->next = loop->next; /* get this out of the chain */ loop->next->prev = loop->prev; @@ -286,7 +286,7 @@ labelGotoGoto (iCode * ic) stat->next != loop) { - symbol *repLabel = stat->next->argLabel.label; /* replace with label */ + symbol *repLabel = stat->next->label; /* replace with label */ /* if they are the same then continue */ if (repLabel->key == sLabel->key) @@ -299,7 +299,7 @@ labelGotoGoto (iCode * ic) case GOTO: /* for a goto statement */ hTabDeleteItem (&labelRef, (IC_LABEL (loop))->key, loop, DELETE_ITEM, NULL); - loop->argLabel.label = repLabel; + loop->label = repLabel; hTabAddItem (&labelRef, repLabel->key, loop); break; @@ -327,7 +327,7 @@ labelGotoGoto (iCode * ic) } /*-----------------------------------------------------------------*/ -/* labelUnrefLabel - remove unreferneced labels */ +/* labelUnrefLabel - remove unreferenced labels */ /*-----------------------------------------------------------------*/ int labelUnrefLabel (iCode * ic) @@ -341,9 +341,6 @@ labelUnrefLabel (iCode * ic) /* if this is a label */ if (loop->op == LABEL) { - set *refs; - - refs = NULL; if (((IC_LABEL (loop))->key == returnLabel->key) || ((IC_LABEL (loop))->key == entryLabel->key)) continue;