[PATCH 7/8] x86: drop use of setjmp() from disassembler
Jan Beulich
jbeulich@suse.com
Tue Apr 4 07:01:04 GMT 2023
With the longjmp() uses all gone, the setjmp() isn't necessary anymore
either.
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -39,7 +39,6 @@
#include "libiberty.h"
#include "safe-ctype.h"
-#include <setjmp.h>
typedef struct instr_info instr_info;
static bool dofloat (instr_info *, int);
@@ -133,7 +132,6 @@ struct dis_private {
bfd_byte the_buffer[MAX_MNEM_SIZE];
bfd_vma insn_start;
int orig_sizeflag;
- OPCODES_SIGJMP_BUF bailout;
};
enum address_mode
@@ -9842,9 +9840,6 @@ print_insn (bfd_vma pc, disassemble_info
ins.op_out[i] = op_out[i];
}
- if (OPCODES_SIGSETJMP (priv.bailout) != 0)
- return fetch_error (&ins);
-
sizeflag = priv.orig_sizeflag;
switch (ckprefix (&ins))
More information about the Binutils
mailing list