bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/28733] RISC-V: Bad errors on fence.i and CSR ISA checking


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gas/28733] RISC-V: Bad errors on fence.i and CSR ISA checking
Date: Wed, 23 Feb 2022 12:04:21 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28733

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Nelson Chu <nelsonc1225@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e4028336b19998e74a51dd0918a8b3922e08a537

commit e4028336b19998e74a51dd0918a8b3922e08a537
Author: Patrick O'Neill <patrick@rivosinc.com>
Date:   Fri Jan 21 09:22:46 2022 -0800

    RISC-V: PR28733, add missing extension info to 'unrecognized opcode' error

    Currently we report errors as "unrecognized opcode `fence.i'" when the
    opcode isn't part of the selected extensions.
    This patch expands that error message to include the missing extension
    information. For example, now the error message would be "unrecognized
    opcode `fence.i', extension `zifencei' required".
    If the opcode is not a part of any extension, the error message reverts
    to "unrecognized opcode `<op statement>'".

    Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>

    bfd/
            pr 28733
            * elfxx-riscv.c (riscv_multi_subset_supports_ext): New function,
            used to return the extension string for each INSN_CLASS_*.
            * elfxx-riscv.h: Added extern riscv_multi_subset_supports_ext.
    gas/
            pr 28733
            * config/tc-riscv.c (struct riscv_ip_error): New structure,
            contains information about errors that occur within the riscv_ip.
            (riscv_ip): Use struct riscv_ip_error to report more detailed
errors.
            * testsuite/gas/riscv/c-fld-fsd-fail.l: Updated.
            * testsuite/gas/riscv/march-imply-i2p1-01.: Likewise.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]