Skip to content

Removed clz.c workaround; use riscv32-unknown-elf toolchain#538

Merged
fdesbiens merged 1 commit into
devfrom
remove-core-v-mcu-clz
May 27, 2026
Merged

Removed clz.c workaround; use riscv32-unknown-elf toolchain#538
fdesbiens merged 1 commit into
devfrom
remove-core-v-mcu-clz

Conversation

@fdesbiens
Copy link
Copy Markdown
Contributor

bsp/clz.c provided a weak __clzsi2 fallback to work around the missing rv32 multilib in the riscv-collab riscv64-unknown-elf toolchain. Since cmake/riscv32-unknown-elf-rv32imc.cmake now uses the dedicated riscv32- unknown-elf-gcc toolchain (riscv-collab riscv32-elf release), which ships a native rv32/ilp32 libgcc with all required helpers, the workaround is no longer needed.

Remove bsp/clz.c and its entry in CMakeLists.txt.

…lchain

bsp/clz.c provided a weak __clzsi2 fallback to work around the missing
rv32 multilib in the riscv-collab riscv64-unknown-elf toolchain.  Since
cmake/riscv32-unknown-elf-rv32imc.cmake now uses the dedicated riscv32-
unknown-elf-gcc toolchain (riscv-collab riscv32-elf release), which ships
a native rv32/ilp32 libgcc with all required helpers, the workaround is
no longer needed.

Remove bsp/clz.c and its entry in CMakeLists.txt.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@fdesbiens fdesbiens merged commit 6061c43 into dev May 27, 2026
1 check passed
@fdesbiens fdesbiens deleted the remove-core-v-mcu-clz branch May 27, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant