diff --git a/asm/nasm.c b/asm/nasm.c index e97a0af9..7bfca746 100644 --- a/asm/nasm.c +++ b/asm/nasm.c @@ -1564,10 +1564,8 @@ static void forward_refs(insn *instruction) int i; struct forwrefinfo *fwinf; - instruction->forw_ref = false; - if (!optimizing.level) - return; /* For -O0 don't bother */ + return; /* For -O1 don't bother */ if (!forwref) return; @@ -1575,7 +1573,6 @@ static void forward_refs(insn *instruction) if (forwref->lineno != globallineno) return; - instruction->forw_ref = true; do { instruction->oprs[forwref->operand].opflags |= OPFLAG_FORWARD; forwref = saa_rstruct(forwrefs); diff --git a/asm/parser.c b/asm/parser.c index c58e72f3..80d8c050 100644 --- a/asm/parser.c +++ b/asm/parser.c @@ -637,7 +637,6 @@ insn *parse_line(char *buffer, insn *result) restart_parse: first = true; - result->forw_ref = false; stdscan_reset(); stdscan_set(buffer); @@ -988,9 +987,6 @@ insn *parse_line(char *buffer, insn *result) value = evaluate(stdscan, NULL, &tokval, &op->opflags, critical, &hints); i = tokval.t_type; - if (op->opflags & OPFLAG_FORWARD) { - result->forw_ref = true; - } if (!value) /* Error in evaluator */ goto fail; diff --git a/include/nasm.h b/include/nasm.h index f6914158..17124293 100644 --- a/include/nasm.h +++ b/include/nasm.h @@ -759,7 +759,6 @@ typedef struct insn { /* an instruction itself */ extop *eops; /* extended operands */ int eops_float; /* true if DD and floating */ int32_t times; /* repeat count (TIMES prefix) */ - bool forw_ref; /* is there a forward reference? */ bool rex_done; /* REX prefix emitted? */ int rex; /* Special REX Prefix */ int vexreg; /* Register encoded in VEX prefix */