]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Drop riscv_ext_flag_table in favor of riscv_ext_info_t data
authorKito Cheng <kito.cheng@sifive.com>
Wed, 7 May 2025 13:27:20 +0000 (21:27 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Tue, 13 May 2025 03:57:37 +0000 (11:57 +0800)
commit90c6ccebd762ae920690fce20cd3f2b8e24357a7
tree6aea15ce735303cf93998fea196a523c65d88780
parent897bb6d4347469e378aad9e00fc4b5c6fcb1e9ce
RISC-V: Drop riscv_ext_flag_table in favor of riscv_ext_info_t data

Refactor extension flag handling by removing the old riscv_ext_flag_table and
sourcing all flag definitions directly from the flags field of the unified
riscv_ext_info_t structures generated from riscv-ext.def.

gcc/ChangeLog:

* common/config/riscv/riscv-common.cc (riscv_extra_ext_flag_table_t):
New.
(riscv_ext_flag_table): Rename to ...
(riscv_extra_ext_flag_table): this, and drop most of definitions
that can obtained from the flags field of the riscv_ext_info_t
structures.
(apply_extra_extension_flags): Use riscv_ext_info_t.
(riscv_ext_is_subset): Ditto.
gcc/common/config/riscv/riscv-common.cc