https://gcc.gnu.org/g:f40ba1689e81e9def083aae882966ec0058794d7
commit f40ba1689e81e9def083aae882966ec0058794d7 Author: Kito Cheng <[email protected]> Date: Fri Aug 8 09:00:59 2025 +0800 Increase NUM_ABI_IDS to support RISC-V VLS calling convention variants The RISC-V fixed-length vector calling convention introduces multiple ABI variants based on different ABI_VLEN values. Each variant requires a separate ABI ID to maintain proper ABI compatibility tracking in GCC. Increase NUM_ABI_IDS from 8 to 12 to accommodate these additional ABI variants. gcc/ChangeLog: * function-abi.h (NUM_ABI_IDS): Increase from 8 to 12. (cherry picked from commit dc3def267ca538075718290f0e8b8f36026d7115) Diff: --- gcc/function-abi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/function-abi.h b/gcc/function-abi.h index edf83c1cb39d..0c5a3bf5b018 100644 --- a/gcc/function-abi.h +++ b/gcc/function-abi.h @@ -28,7 +28,7 @@ along with GCC; see the file COPYING3. If not see NUM_ABI_IDS is the maximum number of such ABIs that GCC can handle at once. A bitfield with this number of bits can represent any combinaion of the supported ABIs. */ -const size_t NUM_ABI_IDS = 8; +const size_t NUM_ABI_IDS = 12; /* Information about one of the target's predefined ABIs. */ class predefined_function_abi
