Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation errors when ARCH=riscv #130

Merged
merged 2 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
sudo apt-get install -q -y build-essential
make clean config
make check-snapshots || exit 1
make clean config ARCH=arm
make distclean config ARCH=arm
make check || exit 1
make clean config ARCH=riscv
make distclean config ARCH=riscv
make check || exit 1

host-arm:
Expand Down
2 changes: 1 addition & 1 deletion src/riscv-codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void cfg_flatten()

for (fn_t *fn = FUNC_LIST.head; fn; fn = fn->next) {
/* reserve stack */
ph2_ir_t *fflatten_ir = add_ph2_ir(OP_define);
ph2_ir_t *flatten_ir = add_ph2_ir(OP_define);
flatten_ir->src0 = fn->func->stack_size;

for (basic_block_t *bb = fn->bbs; bb; bb = bb->rpo_next) {
Expand Down