[gcc(refs/vendors/riscv/heads/gcc-15-with-riscv-opts)] Increase NUM_ABI_IDS to support RISC-V VLS calling convention variants
Jeff Law
law@gcc.gnu.org
Fri Jan 30 07:07:06 GMT 2026
https://gcc.gnu.org/g:6aab296faa64ebfb98f62d955826c8658a7fa369
commit 6aab296faa64ebfb98f62d955826c8658a7fa369
Author: Kito Cheng <kito.cheng@sifive.com>
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
More information about the Gcc-cvs
mailing list