On 1/20/25 8:59 PM, Jiawei wrote:
This patch introduces support for RISC-V Profiles RV20 and RV22 [1],
enabling developers to utilize these profiles through the -march option.
[1] https://github.com/riscv/riscv-profiles/releases/tag/v1.0
Version log:
Using lowercase letters to present Profiles.
Using '_' as divsor between Profiles and other RISC-V extension.
gcc/ChangeLog:
* common/config/riscv/riscv-common.cc (struct riscv_profiles): New
struct.
(riscv_subset_list::parse_profiles): New parser.
(riscv_subset_list::parse_base_ext): Ditto.
* config/riscv/riscv-subset.h: New def.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/arch-45.c: New test.
* gcc.target/riscv/arch-46.c: New test.
* gcc.target/riscv/arch-47.c: New test.
So I think we probably need some documentation on the profile options in
invoke.texi.
I realize you may not necessarily be a native english speaker, so what I
would suggest is you do your best. If adjustments need to be made on
the documentation, I can certainly help with wordsmithing.
So while I think the patches are fine, let's get the doc situation
sorted out before pushing these two patches to the trunk.
Thanks!
jeff