]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Fix the behavior for multilib-generator with --cmodel=large on rv32
authorKito Cheng <kito.cheng@sifive.com>
Thu, 10 Apr 2025 08:58:49 +0000 (16:58 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Thu, 10 Apr 2025 09:04:26 +0000 (17:04 +0800)
Large code model is only supported on RV64, so we don't need to
generate the multilibs for RV32 with --cmodel=large. And the compact
code model is something we don't supported on upstream (which is
accidentally added in the past), so we need to remove it.

gcc/ChangeLog:

* config/riscv/multilib-generator: Remove the compact code model
and check large code model for RV32.

gcc/config/riscv/multilib-generator

index 48280168b5be5f7a5a94174d3a0022524688652a..6ad1cf0e553291d241c345a930441b963b0c46e2 100755 (executable)
@@ -159,8 +159,8 @@ for cmodel in cmodels:
              "e.g. rv32imafd-ilp32--" % cfg)
       sys.exit(1)
 
-    # Compact code model only support rv64.
-    if cmodel == "compact" and arch.startswith("rv32"):
+    # Large code model only support rv64.
+    if cmodel == "large" and arch.startswith("rv32"):
       continue
 
     arch = arch_canonicalize (arch, args.misa_spec)