Re: [PATCH v2] RISC-V: Handle multi-lib path correclty for linux

2023-05-12 Thread Kito Cheng via Gcc-patches
Apologize for that... fixed on top of trunk: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=7a7f6b26259d22115ee4813ce130622ad1073d16 On Fri, May 12, 2023 at 4:36 PM Andreas Schwab wrote: > > WTF? > > ../../gcc/common/config/riscv/riscv-common.cc: In function 'const char* > riscv_select_multilib_

Re: [PATCH v2] RISC-V: Handle multi-lib path correclty for linux

2023-05-12 Thread Andreas Schwab
WTF? ../../gcc/common/config/riscv/riscv-common.cc: In function 'const char* riscv_select_multilib_by_abi(const std::string&, const std::string&, const riscv_subset_list*, const switchstr*, int, const std::vector&)': ../../gcc/common/config/riscv/riscv-common.cc:1599:22: error: unused parameter

Re: [PATCH v2] RISC-V: Handle multi-lib path correclty for linux

2023-05-08 Thread Kito Cheng via Gcc-patches
Committed to trunk On Thu, May 4, 2023 at 4:03 PM Kito Cheng via Gcc-patches wrote: > > RISC-V Linux encodes the ABI into the path, so in theory, we can only use that > to select multi-lib paths, and no way to use different multi-lib paths between > `rv32i/ilp32` and `rv32ima/ilp32`, we'll mappin

[PATCH v2] RISC-V: Handle multi-lib path correclty for linux

2023-05-04 Thread Kito Cheng via Gcc-patches
RISC-V Linux encodes the ABI into the path, so in theory, we can only use that to select multi-lib paths, and no way to use different multi-lib paths between `rv32i/ilp32` and `rv32ima/ilp32`, we'll mapping both to `/lib/ilp32`. It's hard to do that with GCC's builtin multi-lib selection mechanism