From d82c06b68e32d01d59b664fe32496184db19b251 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 21 Apr 2023 12:09:59 +0200 Subject: [PATCH] x86: drop use of setjmp() from disassembler With the longjmp() uses all gone, the setjmp() isn't necessary anymore either. --- opcodes/i386-dis.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 24815389353..d6bff51e6e6 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -39,7 +39,6 @@ #include "libiberty.h" #include "safe-ctype.h" -#include 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 @@ -9874,9 +9872,6 @@ print_insn (bfd_vma pc, disassemble_info *info, int intel_syntax) ins.op_out[i] = op_out[i]; } - if (OPCODES_SIGSETJMP (priv.bailout) != 0) - return fetch_error (&ins); - sizeflag = priv.orig_sizeflag; switch (ckprefix (&ins)) -- 2.30.2