https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110696
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Lehua Ding <lh...@gcc.gnu.org>: https://gcc.gnu.org/g:70742d08832eb7db4d90f52465966111a19ce3a5 commit r14-2564-g70742d08832eb7db4d90f52465966111a19ce3a5 Author: Lehua Ding <lehua.d...@rivai.ai> Date: Mon Jul 17 12:27:12 2023 +0800 RISC-V: Ensure all implied extensions are included [PR110696] This patch fix target/PR110696, recursively add all implied extensions. PR target/110696 gcc/ChangeLog: * common/config/riscv/riscv-common.cc (riscv_subset_list::handle_implied_ext): recur add all implied extensions. (riscv_subset_list::check_implied_ext): Add new method. (riscv_subset_list::parse): Call checker check_implied_ext. * config/riscv/riscv-subset.h: Add new method. gcc/testsuite/ChangeLog: * gcc.target/riscv/attribute-20.c: New test. * gcc.target/riscv/pr110696.c: New test. Signed-off-by: Lehua Ding <lehua.d...@rivai.ai>