commit b6a761e
Michael Forney
·
2024-02-08 09:20:33 +0000 UTC
parent 562164e
binutils: Fix build with cproc
2 files changed,
+33,
-1
1@@ -0,0 +1,32 @@
2+From 833b13a4aacbc5fb66dd13f1d6e6d09d152ac623 Mon Sep 17 00:00:00 2001
3+From: Michael Forney <mforney@mforney.org>
4+Date: Thu, 8 Feb 2024 01:16:45 -0800
5+Subject: [PATCH] x86: avoid non-standard [a...b] designator
6+
7+---
8+ opcodes/i386-dis.c | 2 +-
9+ 1 file changed, 1 insertion(+), 1 deletion(-)
10+
11+diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
12+index de9793690a5..fccdaa4f1e4 100644
13+--- a/opcodes/i386-dis.c
14++++ b/opcodes/i386-dis.c
15+@@ -9363,7 +9363,6 @@ print_insn (bfd_vma pc, disassemble_info *info, int intel_syntax)
16+ ? intel_syntax
17+ : (info->mach & bfd_mach_i386_intel_syntax) != 0,
18+ .intel_mnemonic = !SYSV386_COMPAT,
19+- .op_index[0 ... MAX_OPERANDS - 1] = -1,
20+ .start_pc = pc,
21+ .start_codep = priv.the_buffer,
22+ .codep = priv.the_buffer,
23+@@ -9488,6 +9487,7 @@ print_insn (bfd_vma pc, disassemble_info *info, int intel_syntax)
24+ {
25+ op_out[i][0] = 0;
26+ ins.op_out[i] = op_out[i];
27++ ins.op_index[i] = -1;
28+ }
29+
30+ if (OPCODES_SIGSETJMP (priv.bailout) != 0)
31+--
32+2.42.0
33+
+1,
-1
1@@ -1 +1 @@
2-2.39 r0
3+2.39 r1