]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/ChangeLog
RISC-V: Don't allow any uppercase letter in the arch string.
authorNelson Chu <nelson.chu@sifive.com>
Sat, 21 Nov 2020 03:19:58 +0000 (11:19 +0800)
committerNelson Chu <nelson.chu@sifive.com>
Tue, 1 Dec 2020 07:09:26 +0000 (15:09 +0800)
commite8d4709e6a5f4e3fad8479b8069c52294be54488
tree381e50836b9ebefc2c013651cdf8f68b69cbff7f
parentd541518bec90502134ea6b348cb2d4f3363d1c70
RISC-V: Don't allow any uppercase letter in the arch string.

Although I cannot find any RISC-V specs said that uppercases are not
allowed in the arhc string, but seems like it is an established fact
both for GNU and LLVM.  Therefore, we shouldn't allow the uppercases
for the non-standard x extensions, too.

bfd/
* elfxx-riscv.c (riscv_parse_subset): ISA string cannot contain
any uppercase letter.

gas/
* testsuite/gas/riscv/march-fail-uppercase-base.d: Updated.
* testsuite/gas/riscv/march-fail-uppercase.l: Updated.
* testsuite/gas/riscv/march-fail-uppercase-x.d: New testcase.
bfd/ChangeLog
bfd/elfxx-riscv.c
gas/ChangeLog
gas/testsuite/gas/riscv/march-fail-uppercase-base.d
gas/testsuite/gas/riscv/march-fail-uppercase-x.d [new file with mode: 0644]
gas/testsuite/gas/riscv/march-fail-uppercase.l