projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6745d72
)
Reduce severity of redundant prefixes from error to warning.
author
Charles Crayne
<chuck@thor.crayne.org>
Tue, 30 Oct 2007 01:24:59 +0000
(18:24 -0700)
committer
Charles Crayne
<chuck@thor.crayne.org>
Tue, 30 Oct 2007 01:24:59 +0000
(18:24 -0700)
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/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;