Landing: 38d41abb7583
Project / Subsystem
gcc / risc-v
Date
2026-07-10
Author
Jim Lin
Commit
38d41abb75838df35493f150ef756846360b9543
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- risc-v
- patch_id
- —
- commit_hash
- 38d41abb75838df35493f150ef756846360b9543
- source_type
- github
- headline
- RISC-V: Don't drop multilibs matching the default march/mabi
- tldr
- Ensures RISC-V multilibs with matching march/mabi but different mcmodel options are preserved.
- author
- Jim Lin
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • risc-v
- • multilib
- • compiler options
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-10T00:00:00.000Z
This commit modifies the RISC-V multilib parsing logic to ensure that multilib entries are not prematurely dropped if they match the default march and mabi but differ in other options like mcmodel. Previously, these entries were discarded, potentially leading to incorrect library selection. The change in riscv_multi_lib_info_t::parse now retains these multilibs for proper consideration.