public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] x86: insert "no error" enumerator in i386_error enumeration
@ 2022-08-18  7:20 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2022-08-18  7:20 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b4d65f2d0b445fee54a2eefcec25336b4238ab82

commit b4d65f2d0b445fee54a2eefcec25336b4238ab82
Author: Jan Beulich <jbeulich@suse.com>
Date:   Thu Aug 18 09:19:34 2022 +0200

    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:
---
 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,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-18  7:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-18  7:20 [binutils-gdb] x86: insert "no error" enumerator in i386_error enumeration Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).