x86: insert "no error" enumerator in i386_error enumeration
authorJan Beulich <jbeulich@suse.com>
Thu, 18 Aug 2022 07:19:34 +0000 (09:19 +0200)
committerJan 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

index 8a893c48b74a7b79f709954795abb59bd42c19b4..3c0b73f26a6e033a2d24efa45d1f11279f774488 100644 (file)
@@ -226,6 +226,7 @@ union i386_op
 
 enum i386_error
   {
+    no_error, /* Must be first.  */
     operand_size_mismatch,
     operand_type_mismatch,
     register_type_mismatch,