]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[AArch64] Prefer error messages from opcodes enabled in CPU_VARIANT
authorSiddhesh Poyarekar <siddesh.poyarekar@arm.com>
Fri, 11 Sep 2020 03:48:04 +0000 (09:18 +0530)
committerLuis Machado <luis.machado@linaro.org>
Tue, 20 Oct 2020 17:59:36 +0000 (14:59 -0300)
commit261dde89bc01f93a65820477b7029594a52f1906
tree93a9c3adb1ed599d0398a595ee4427d94d56e614
parentae86f581c2ac33fc289eb4ac62c0539a7e9c6793
[AArch64] Prefer error messages from opcodes enabled in CPU_VARIANT

Printing error messages from opcodes that would otherwise not be used
due to not being enabled is pointless when there are other
alternatives.  Prefer error messages from enabled opcodes instead.

A more ideal fix would to sort error messages earlier when deciding
which KIND to return.  That is, other fatal errors of a less serious
KIND from an enabled opcode should get priority over a more serious
KIND of a disabled opcode.

gas/ChangeLog:

2020-10-20  Siddhesh Poyarekar  <siddesh.poyarekar@arm.com>

* config/tc-aarch64.c (output_operand_error_report): Account
for CPU_VARIANT in error messages.
* testsuite/gas/aarch64/illegal-sve2.l: Adjust.
* testsuite/gas/aarch64/verbose-error.l: Adjust.
gas/ChangeLog
gas/config/tc-aarch64.c
gas/testsuite/gas/aarch64/illegal-sve2.l
gas/testsuite/gas/aarch64/verbose-error.l