On 6/25/2026 1:36 AM, Jim Lin wrote:
riscv_multi_lib_info_t::parse received the raw multilib path string
(e.g. ".::riscv64-linux-gnu" on a native build) and compared it against
".". Because the raw string still carries the multi_os_dir suffix, the
comparison failed, the default arch/abi branch was skipped, and arch_str
and abi_str were left empty. The empty arch_str then flowed into
riscv_subset_list::parse.
multi_lib_info->path is already truncated at the first ':' to just the
path component, so use it instead of passing the raw string.
gcc/common/config/riscv/
PR target/125853
* riscv-common.cc (riscv_multi_lib_info_t::parse): Remove the path
parameter and compare multi_lib_info->path against "." instead.
(riscv_compute_multilib): Update caller.
Thanks. I'm doing some testing with this right now. It looks like it's
past the point where it failed with the original patch. It's got
several more hours to go, but I expect to have good results by tomorrow
AM at which point I'll take a close look at this patch itself and take
appropriate action.
Jeff