Reduce severity of redundant prefixes from error to warning.
authorCharles Crayne <chuck@thor.crayne.org>
Tue, 30 Oct 2007 01:24:59 +0000 (18:24 -0700)
committerCharles Crayne <chuck@thor.crayne.org>
Tue, 30 Oct 2007 01:24:59 +0000 (18:24 -0700)
parser.c

index 3bca1ce..fad03e2 100644 (file)
--- 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;