https://sourceware.org/bugzilla/show_bug.cgi?id=28733
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Nelson Chu <nelsonc1...@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=df0a549ebdae74ef9d233243b869d424e6a33c73 commit df0a549ebdae74ef9d233243b869d424e6a33c73 Author: Patrick O'Neill <patr...@rivosinc.com> Date: Fri Jan 21 09:22:00 2022 -0800 RISC-V: PR28733, add missing extension info to 'invalid CSR' error Currently we report errors as "invalid CSR 'fscr' for the current ISA" when the instruction isn't valid. This patch expands that error message to include the missing extension information. For example, now the error message would be "invalid CSR 'fscr' for the current ISA, CSR 'fscr' needs 'f' extension". Signed-off-by: Patrick O'Neill <patr...@rivosinc.com> gas/ pr 28733 * config/tc-riscv.c (riscv_csr_address): Report more details when the CSR is invalid. * testsuite/gas/riscv/csr-version-1p10.l: Updated detailed errors. * testsuite/gas/riscv/csr-version-1p11.l: Likewise. * testsuite/gas/riscv/csr-version-1p12.l: Likewise. * testsuite/gas/riscv/csr-version-1p9p1.l: Likewise. -- You are receiving this mail because: You are on the CC list for the bug.