diff options
author | Charles Crayne <chuck@thor.crayne.org> | 2007-10-29 18:24:59 -0700 |
---|---|---|
committer | Charles Crayne <chuck@thor.crayne.org> | 2007-10-29 18:24:59 -0700 |
commit | 052c0bd4843e9222711bec40093ce294d0e32540 (patch) | |
tree | 150c2d51724fe18c03dacc438ec01cc54abdc115 /parser.c | |
parent | 6745d722f447a7489832746c614024a5dd4cd5a7 (diff) | |
download | nasm-052c0bd4843e9222711bec40093ce294d0e32540.tar.gz nasm-052c0bd4843e9222711bec40093ce294d0e32540.tar.bz2 nasm-052c0bd4843e9222711bec40093ce294d0e32540.zip |
Reduce severity of redundant prefixes from error to warning.
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |