https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125853

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jeff Law <[email protected]>:

https://gcc.gnu.org/g:224a90f262811a962c6365a306e826dd479f1265

commit r17-2014-g224a90f262811a962c6365a306e826dd479f1265
Author: Jim Lin <[email protected]>
Date:   Tue Jun 30 07:30:43 2026 -0600

    RISC-V: Fix empty arch_str for native multilib path ".::riscv64-linux-gnu"
[PR125853]

    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.

            PR target/125853
    gcc/
            * common/config/riscv/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.

Reply via email to