summaryrefslogtreecommitdiff
path: root/libiberty/make-relative-prefix.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2023-03-30 11:09:08 +0100
committerRichard Sandiford <richard.sandiford@arm.com>2023-03-30 11:09:08 +0100
commitb5b4f6654515c93e131578045260d2dc8c6caeee (patch)
tree12c8e7df6d2170c68664aee74a2ed34d81ed2440 /libiberty/make-relative-prefix.c
parent8c2216b2773ee9e5a233fa29e12b61d1646af18e (diff)
downloadbinutils-gdb-b5b4f6654515c93e131578045260d2dc8c6caeee.tar.gz
aarch64: Try to report invalid variants against the closest match
If an instruction has invalid qualifiers, GAS would report the error against the final opcode entry that got to the qualifier- checking stage. It seems better to report the error against the opcode entry that had the closest match, just like we pick the closest match within an opcode entry for the "did you mean this?" message. This patch adds the number of invalid operands as an argument to AARCH64_OPDE_INVALID_VARIANT and then picks the AARCH64_OPDE_INVALID_VARIANT with the lowest argument.
Diffstat (limited to 'libiberty/make-relative-prefix.c')
0 files changed, 0 insertions, 0 deletions