aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@sifive.com>2025-04-10 16:58:49 +0800
committerKito Cheng <kito.cheng@sifive.com>2025-04-10 17:04:26 +0800
commit72dff34bcdd6f05b64bbf07739ab815e673b5946 (patch)
tree043eb3d4e9915477e62938478022475ca16c105d /gcc
parent9e48698228dbf1bbebba3a52d7ae2f47fee89624 (diff)
downloadgcc-72dff34bcdd6f05b64bbf07739ab815e673b5946.zip
gcc-72dff34bcdd6f05b64bbf07739ab815e673b5946.tar.gz
gcc-72dff34bcdd6f05b64bbf07739ab815e673b5946.tar.bz2
RISC-V: Fix the behavior for multilib-generator with --cmodel=large on rv32
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.
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/config/riscv/multilib-generator4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/riscv/multilib-generator b/gcc/config/riscv/multilib-generator
index 4828016..6ad1cf0 100755
--- a/gcc/config/riscv/multilib-generator
+++ b/gcc/config/riscv/multilib-generator
@@ -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)