diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2021-11-08 22:45:49 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2021-11-10 00:25:58 +0800 |
commit | abe562bb01479ea2c8952ad98714f3225527aa7e (patch) | |
tree | 0a8d33d47a8a923679bfc7d8c6771b428ad986c7 /gcc/common | |
parent | 00c9ce13a64e324dabd8dfd236882919a3119479 (diff) | |
download | gcc-abe562bb01479ea2c8952ad98714f3225527aa7e.zip gcc-abe562bb01479ea2c8952ad98714f3225527aa7e.tar.gz gcc-abe562bb01479ea2c8952ad98714f3225527aa7e.tar.bz2 |
[PR/target 102957] Allow Z*-ext extension with only 2 char.
We was assume the Z* extension should be more than 2 char, so we put an
assertion there, but it should just an error or warning rather than an
assertion, however RISC-V has add `Zk` extension, which just 2 char, so
actually, we should just allow that.
gcc/ChangeLog
PR target/102957
* common/config/riscv/riscv-common.c (multi_letter_subset_rank): Remove
assertion for Z*-ext.
gcc/testsuite/ChangeLog
* gcc.target/riscv/pr102957.c: New.
Diffstat (limited to 'gcc/common')
-rw-r--r-- | gcc/common/config/riscv/riscv-common.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/common/config/riscv/riscv-common.c b/gcc/common/config/riscv/riscv-common.c index 37b6ea8..f3c120b 100644 --- a/gcc/common/config/riscv/riscv-common.c +++ b/gcc/common/config/riscv/riscv-common.c @@ -202,7 +202,6 @@ multi_letter_subset_rank (const std::string &subset) high_order = 1; break; case 'z': - gcc_assert (subset.length () > 2); high_order = 2; break; case 'x': |