summaryrefslogtreecommitdiffhomepage
path: root/ir/be/riscv/riscv_cconv.c
diff options
context:
space:
mode:
authorJohannes Bucher <johannes.bucher2@student.kit.edu>2019-06-07 17:55:50 +0200
committerJohannes Bucher <johannes.bucher2@student.kit.edu>2019-06-11 16:34:58 +0200
commitdeef39158f6e8bf329ab524766cbc397785baace (patch)
treea6c79f9ba725f328338f52a31ca9b123efeec3d5 /ir/be/riscv/riscv_cconv.c
parent3115f120a9a6e11e2a152af65d6e1e1943d68d33 (diff)
riscv: rename register s0 -> fp
fp is an alternative ABI name for register s0
Diffstat (limited to 'ir/be/riscv/riscv_cconv.c')
-rw-r--r--ir/be/riscv/riscv_cconv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/riscv/riscv_cconv.c b/ir/be/riscv/riscv_cconv.c
index fea096c..2cb74cf 100644
--- a/ir/be/riscv/riscv_cconv.c
+++ b/ir/be/riscv/riscv_cconv.c
@@ -104,7 +104,7 @@ void riscv_determine_calling_convention(riscv_calling_convention_t *const cconv,
if (irg != NULL) {
be_irg_t *birg = be_birg_from_irg(irg);
if (!omit_fp)
- rbitset_clear(birg->allocatable_regs, REG_S0); // s0 = frame pointer
+ rbitset_clear(birg->allocatable_regs, REG_FP);
}
cconv->omit_fp = omit_fp;
}