summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Bucher <johannes.bucher2@student.kit.edu>2019-03-06 17:32:32 +0100
committerJohannes Bucher <johannes.bucher2@student.kit.edu>2019-03-06 17:32:32 +0100
commitc031d638eda0cecbdacbeda06f469c099714f862 (patch)
tree675dd3844ddc3c14d14bbf024d4457143af373ca
parentaeb9a50904e8864cef8e7f783f5bda705a792c37 (diff)
fix mips and riscv function alignment
-rw-r--r--ir/be/mips/mips_emitter.c2
-rw-r--r--ir/be/riscv/riscv_emitter.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/mips/mips_emitter.c b/ir/be/mips/mips_emitter.c
index 9ae0e16..ae0ba57 100644
--- a/ir/be/mips/mips_emitter.c
+++ b/ir/be/mips/mips_emitter.c
@@ -241,7 +241,7 @@ void mips_emit_function(ir_graph *const irg)
be_gas_elf_type_char = '@';
ir_entity *const entity = get_irg_entity(irg);
- be_gas_emit_function_prolog(entity, 16, NULL);
+ be_gas_emit_function_prolog(entity, 4, NULL);
ir_node **const blk_sched = be_create_block_schedule(irg);
ir_reserve_resources(irg, IR_RESOURCE_IRN_LINK);
diff --git a/ir/be/riscv/riscv_emitter.c b/ir/be/riscv/riscv_emitter.c
index 3d6fb14..b3ac409 100644
--- a/ir/be/riscv/riscv_emitter.c
+++ b/ir/be/riscv/riscv_emitter.c
@@ -256,7 +256,7 @@ void riscv_emit_function(ir_graph *const irg)
be_gas_elf_type_char = '@';
ir_entity *const entity = get_irg_entity(irg);
- be_gas_emit_function_prolog(entity, 16, NULL);
+ be_gas_emit_function_prolog(entity, 4, NULL);
ir_node **const blk_sched = be_create_block_schedule(irg);
ir_reserve_resources(irg, IR_RESOURCE_IRN_LINK);