]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PR/target 102957] Allow Z*-ext extension with only 2 char.
authorKito Cheng <kito.cheng@sifive.com>
Mon, 8 Nov 2021 14:45:49 +0000 (22:45 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Tue, 9 Nov 2021 16:25:58 +0000 (00:25 +0800)
commitabe562bb01479ea2c8952ad98714f3225527aa7e
tree0a8d33d47a8a923679bfc7d8c6771b428ad986c7
parent00c9ce13a64e324dabd8dfd236882919a3119479
[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.
gcc/common/config/riscv/riscv-common.c
gcc/testsuite/gcc.target/riscv/pr102957.c [new file with mode: 0644]