RISC-V: Check multiletter extension has more than 1 letter
authorKito Cheng <kito.cheng@sifive.com>
Thu, 20 Aug 2020 09:19:41 +0000 (17:19 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Mon, 2 Nov 2020 09:09:00 +0000 (17:09 +0800)
commit4ad70477801548db4d37e8d540a3fd6ebbbcfd48
tree333b27605142095eaab0256a58b49a97a0d5d310
parentc1e6691245ca2f1f329549f323f67afe32bcb97a
RISC-V: Check multiletter extension has more than 1 letter

gcc/ChangeLog:

* common/config/riscv/riscv-common.c
(riscv_subset_list::parse_multiletter_ext): Checking multiletter
extension has more than 1 letter.

gcc/testsuite/ChangeLog

* gcc.target/riscv/arch-7.c: New.
* gcc.target/riscv/attribute-10.c: Update test arch string.
gcc/common/config/riscv/riscv-common.c
gcc/testsuite/gcc.target/riscv/arch-7.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/attribute-10.c