Revert "parser: fix invalid segment override on EQU FAR pointers"

This reverts commit 35ffac3ea0.

This commit caused a regression, causing segment overrides to get
lost. Multiple travis tests failed as a result.

Revert this until a proper solution exists.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin (Intel) 2026-06-07 20:50:33 -07:00
parent 6d8ea837c6
commit d832776ccb

View file

@ -1108,17 +1108,7 @@ restart_parse:
*/
} else if (mref || !far_jmp_ok) {
/* segment override? */
if (!mref && (!ok_reg || !IS_SREG(value->type))) {
i = stdscan(NULL, &tokval);
goto mref_more;
} else {
mref = true;
if (!ok_reg || !IS_SREG(value->type)) {
nasm_nonfatal("invalid segment override");
}
i = stdscan(NULL, &tokval);
goto mref_more;
}
mref = true;
/*
* Process the segment override.