logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0004-x86-avoid-non-standard-a.b-designator.patch (1023B)


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