From: Jan Beulich Date: Thu, 18 Aug 2022 07:19:34 +0000 (+0200) Subject: x86: insert "no error" enumerator in i386_error enumeration X-Git-Tag: gdb-13-branchpoint~1390 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b4d65f2d0b445fee54a2eefcec25336b4238ab82;p=thirdparty%2Fbinutils-gdb.git x86: insert "no error" enumerator in i386_error enumeration The value of zero would better not indicate any error, but rather hit the abort() at the top of the consuming switch(). --- diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 8a893c48b74..3c0b73f26a6 100644 --- 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,