https://gcc.gnu.org/bugzilla/show_bug.cgi?id=187
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Christoph Meullner <[email protected]>: https://gcc.gnu.org/g:13ece0294f16019878b9b2207282a3e52476bcbb commit r17-642-g13ece0294f16019878b9b2207282a3e52476bcbb Author: Christoph Müllner <[email protected]> Date: Sun May 17 22:49:43 2026 +0200 RISC-V: Add C API and hwprobe feature bit for zicfiss riscv-c-api-doc PR #187 defines the RISC-V C API feature bit for zicfiss as group 1, bit 27. GCC already supports zicfiss, so add the missing feature-bit metadata and libgcc copy of the definition. Upstream Linux exposes zicfiss through RISCV_HWPROBE_KEY_IMA_EXT_1. Copy the upstream Linux hwprobe constants and map the zicfiss bit directly to the matching feature bit. This patch only adds metadata and runtime feature-bit probing. It does not add ISA extension support. gcc/ChangeLog: * common/config/riscv/riscv-ext-bitmask.def: Add zicfiss. * config/riscv/riscv-ext.def: Add C API bit position for zicfiss. libgcc/ChangeLog: * config/riscv/feature_bits.c (ZICFISS_GROUPID, ZICFISS_BITMASK, RISCV_HWPROBE_KEY_IMA_EXT_1, RISCV_HWPROBE_EXT_ZICFISS): Define. (SET_FROM_IMA_EXT_1): Define. (__init_riscv_features_bits_linux): Query IMA_EXT_1 and set zicfiss from the corresponding upstream Linux hwprobe bit. Signed-off-by: Christoph Müllner <[email protected]>
