summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index 3bca1ce..fad03e2 100644
--- a/parser.c
+++ b/parser.c
@@ -258,7 +258,11 @@ insn *parse_line(int pass, char *buffer, insn * result,
} else {
int slot = prefix_slot(tokval.t_integer);
if (result->prefixes[slot]) {
- error(ERR_NONFATAL,
+ if (result->prefixes[slot] == tokval.t_integer)
+ error(ERR_WARNING,
+ "instruction has redundant prefixes");
+ else
+ error(ERR_NONFATAL,
"instruction has conflicting prefixes");
}
result->prefixes[slot] = tokval.t_integer;