]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Don't drop multilibs matching the default march/mabi
authorJim Lin <jim@andestech.com>
Fri, 10 Jul 2026 16:43:04 +0000 (10:43 -0600)
committerJeff Law <jeffrey.law@oss.qualcomm.com>
Fri, 10 Jul 2026 16:43:04 +0000 (10:43 -0600)
A multilib entry that shares march/mabi with the default may
differ in other options such as mcmodel, so it is not equivalent
to the default multilib.  Stop returning false for these entries
in riscv_multi_lib_info_t::parse so they are still recorded.

gcc/ChangeLog:

* common/config/riscv/riscv-common.cc
(riscv_multi_lib_info_t::parse): Remove early-out for multilibs
matching only the default march/mabi.

gcc/common/config/riscv/riscv-common.cc

index 783692076a753b3a7ff24bd7b5146c06ccf80dcf..2d56ba59f0e4597ffaea326f4242f92b6ac5aa67 100644 (file)
@@ -1927,12 +1927,6 @@ riscv_multi_lib_info_t::parse (
          multi_lib_info->arch_str = itr->c_str () + strlen ("march=");
        else if (prefixed_with (*itr, "mabi="))
          multi_lib_info->abi_str = itr->c_str () + strlen ("mabi=");
-
-       /* Skip this multi-lib if this configuration is exactly same as
-          default multi-lib settings.  */
-      if (multi_lib_info->arch_str == default_arch_str
-         && multi_lib_info->abi_str == default_abi_str)
-       return false;
     }
 
   multi_lib_info->subset_list =