projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b57654
)
x86: insert "no error" enumerator in i386_error enumeration
author
Jan Beulich
<jbeulich@suse.com>
Thu, 18 Aug 2022 07:19:34 +0000
(09:19 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Thu, 18 Aug 2022 07:19:34 +0000
(09:19 +0200)
The value of zero would better not indicate any error, but rather hit
the abort() at the top of the consuming switch().
gas/config/tc-i386.c
patch
|
blob
|
history
diff --git
a/gas/config/tc-i386.c
b/gas/config/tc-i386.c
index 8a893c48b74a7b79f709954795abb59bd42c19b4..3c0b73f26a6e033a2d24efa45d1f11279f774488 100644
(file)
--- a/
gas/config/tc-i386.c
+++ b/
gas/config/tc-i386.c
@@
-226,6
+226,7
@@
union i386_op
enum i386_error
{
+ no_error, /* Must be first. */
operand_size_mismatch,
operand_type_mismatch,
register_type_mismatch,