ref: 590028289b23769e95ed571dbe676de4d9687ac2
parent: 7e66667e18139577f1a0f61969316579fd853ae4
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Jun 22 12:38:15 EDT 2016
[cc2] Update the value of sym->u.inst When we call to setlabel() it means that this label is pointing to this instruction, so we have to make the label points to the instruction too, and not only the instruction to the label.
--- a/cc2/code.c
+++ b/cc2/code.c
@@ -84,6 +84,7 @@
return;
code(0, NULL, NULL, NULL);
pc->label = sym;
+ sym->u.inst = pc;
}
void