aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc/ChangeLog
diff options
context:
space:
mode:
authorNelson Chu <nelson.chu@sifive.com>2021-05-21 15:40:33 +0800
committerNelson Chu <nelson.chu@sifive.com>2021-05-24 11:47:18 +0800
commit5d0ed830d362fb8bb200a4f52bf973ba30920802 (patch)
treea25048d16861f86f54b023437e9df0b41c09ab1e /gdb/doc/ChangeLog
parentd16ce6e4d581bcd25c7d9a402c19824c59f04276 (diff)
downloadgdb-5d0ed830d362fb8bb200a4f52bf973ba30920802.zip
gdb-5d0ed830d362fb8bb200a4f52bf973ba30920802.tar.gz
gdb-5d0ed830d362fb8bb200a4f52bf973ba30920802.tar.bz2
RISC-V: PR25212, Report errors for invalid march and mabi combinations.
This patch clarify the following invalid combinations of march and mabi, * ilp32f/lp64f abi without f extension. * ilp32d/lp64d abi without d extension. * ilp32q/lp64q abi without q extension. * e extension with any abi except ilp32e GNU assembler reports errors when finding the above invalid combinations. But LLVM-MC reports warnings and ignores these invalid cases. It help to set the correct ilp32/lp64/ilp32e abi according to rv32/rv64/rve. This looks good and convenient, so perhaps we can do the same things. However, if you don't set the mabi, GNU assembler also try to set the suitable ABI according to march/elf-attribute. Compared to LLVM-MC, we will choose double/quad abi if d/f extension is set. gas/ PR 25212 * config/tc-riscv.c (riscv_set_abi_by_arch): If -mabi isn't set, we will choose ilp32e abi for rv32e. Besides, report errors for the invalid march and mabi combinations. * testsuite/gas/riscv/mabi-attr-rv32e.s: New testcase. Only accept ilp32e abi for rve extension. * testsuite/gas/riscv/mabi-fail-rv32e-lp64f.d: Likewise. * testsuite/gas/riscv/mabi-fail-rv32e-lp64f.l: Likewise. * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.d: Likewise. * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.l: Likewise. * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.q: Likewise. * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.q: Likewise. Renamed all mabi testcases to their march-mabi settings.
Diffstat (limited to 'gdb/doc/ChangeLog')
0 files changed, 0 insertions, 0 deletions