[gcc r17-2316] RISC-V: Don't drop multilibs matching the default march/mabi

Jeff Law via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:38d41abb75838df35493f150ef756846360b9543

commit r17-2316-g38d41abb75838df35493f150ef756846360b9543
Author: Jim Lin <[email protected]>
Date:   Fri Jul 10 10:43:04 2026 -0600

    RISC-V: Don't drop multilibs matching the default march/mabi
    
    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.

Diff:
---
 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 783692076a75..2d56ba59f0e4 100644
--- a/gcc/common/config/riscv/riscv-common.cc
+++ b/gcc/common/config/riscv/riscv-common.cc
@@ -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 =
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.