From b4d65f2d0b445fee54a2eefcec25336b4238ab82 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 18 Aug 2022 09:19:34 +0200 Subject: [PATCH] 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(). --- gas/config/tc-i386.c | 1 + 1 file changed, 1 insertion(+) 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, -- 2.30.2