]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Increase NUM_ABI_IDS to support RISC-V VLS calling convention variants
authorKito Cheng <kito.cheng@sifive.com>
Fri, 8 Aug 2025 01:00:59 +0000 (09:00 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Mon, 27 Oct 2025 09:30:45 +0000 (17:30 +0800)
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.

gcc/function-abi.h

index 6cb552fbcac00f9d61bc995677b75f81b4c3efb4..338f0e1a522d759c26f9d52804aaf04cc5675c00 100644 (file)
@@ -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