Committed on trunk, thanks!
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=43b450e3f72a53c744e77f55393962f1d349373a

 BR,

Jiawei


在 2025/5/11 0:42, Jeff Law 写道:


On 5/10/25 6:30 AM, 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.
Add descriptions in invoke.texi.
Checking if there exist '_' between Profiles and additional extensions.
Using std::string to avoid memory problems.

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.
    * doc/invoke.texi: New option descriptions.

gcc/testsuite/ChangeLog:

    * gcc.target/riscv/arch-49.c: New test.
    * gcc.target/riscv/arch-50.c: New test.
    * gcc.target/riscv/arch-51.c: New test.
    * gcc.target/riscv/arch-52.c: New test.
Both patches in this series are OK.  Please install.

Thanks again,
Jeff



Reply via email to