RISC-V: Allow extension name contain digit
authorKito Cheng <kito.cheng@sifive.com>
Fri, 3 Dec 2021 15:50:53 +0000 (23:50 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Thu, 6 Jan 2022 16:31:16 +0000 (00:31 +0800)
commitc8bdb3452054506f90283ea198a42a811679653d
treeb04f86b43703b131c4c2909b4b45c9eb8f23a5d9
parent2793af17db239429ea3a2e26834e74daa6cff2c0
RISC-V: Allow extension name contain digit

RISC-V spec only allow alphabetical name for extension before, however
vector extension add several extension named with digits, so we try to
extend the naming rule.

Ref:
https://github.com/riscv/riscv-isa-manual/pull/718

gcc/ChangeLog:

* common/config/riscv/riscv-common.c
(riscv_subset_list::parse_multiletter_ext): Allow ext. name has
digit.
gcc/common/config/riscv/riscv-common.c