RISC-V: improve a subset parsing diagnostic
Improves an error message in RISC-V subset parsing to include the specific invalid extension.
This patch enhances an error message in the RISC-V subset parsing code to include the specific invalid ISA extension that caused the error. This makes it easier for users to identify and correct problems in their assembler code. The improved diagnostic now reports the specific item along with the full argument.
- contributor
Agrees with the patch, noting that including the specific invalid subset improves clarity.
“Including the specific invalid subset makes this diagnostic easier to understand when the full subset argument is long.”
In Details
This patch improves the diagnostics in the RISC-V subset parsing code. Clear error messages are crucial for developers to understand and fix issues in their code. This change makes the assembler more user-friendly.
For Context
This patch improves the error messages generated by the RISC-V assembler when it encounters an invalid instruction set extension. By including the name of the invalid extension in the error message, the assembler makes it easier for developers to identify and fix the problem in their code.