summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2019-08-09 15:01:28 -0700
committerH. Peter Anvin (Intel) <hpa@zytor.com>2019-08-09 15:01:28 -0700
commitfb118aecc5c0dbd2e19f14d58a05182ebe98d96d (patch)
tree12e13985f9a4933e1cc4c8ed28675bd2e51e1905
parent5b394611781dfa20b87253dcd81b7e398f6478bb (diff)
downloadnasm-fb118aecc5c0dbd2e19f14d58a05182ebe98d96d.tar.gz
obsolete: make the message clearer in the case of NEVER,!NOP
"instruction never implemented and removed from the target CPU" ... doesn't really make sense, so change it to ... "instruction never implemented and invalid on the target CPU" (still may seen redundant, but it is to distingush it from "and is a noop on...") Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
-rw-r--r--asm/assemble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asm/assemble.c b/asm/assemble.c
index de1abc26..aa00eb8b 100644
--- a/asm/assemble.c
+++ b/asm/assemble.c
@@ -822,7 +822,7 @@ int64_t assemble(int32_t segment, int64_t start, int bits, insn *instruction)
validity = "and is a noop on";
} else {
warning = WARN_OBSOLETE_REMOVED;
- validity = "and removed from";
+ validity = never ? "and invalid on" : "and removed from";
}
nasm_warn(warning, "instruction %s %s the target CPU",