From: Jim Tsung-Chun Lin <[email protected]>

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 | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/gcc/common/config/riscv/riscv-common.cc 
b/gcc/common/config/riscv/riscv-common.cc
index deddb38bd1f2..bcf186180dcd 100644
--- a/gcc/common/config/riscv/riscv-common.cc
+++ b/gcc/common/config/riscv/riscv-common.cc
@@ -3007,12 +3007,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 =
-- 
2.34.1

Reply via email to