Commit e610ea5c authored by Matthias Braun's avatar Matthias Braun
Browse files

arm: Fix stack alignment

parent 09e7542f
......@@ -16,6 +16,8 @@
#include "beirg.h"
#include "firm_types.h"
#define ARM_PO2_STACK_ALIGNMENT 3
typedef struct arm_irg_data_t {
bool omit_fp;
} arm_irg_data_t;
......
......@@ -145,7 +145,7 @@ void arm_finish_graph(ir_graph *irg)
/* fix stack entity offsets */
be_fix_stack_nodes(irg, &arm_registers[REG_SP]);
be_birg_from_irg(irg)->non_ssa_regs = NULL;
be_sim_stack_pointer(irg, misalign, 2, arm_sp_sim);
be_sim_stack_pointer(irg, misalign, ARM_PO2_STACK_ALIGNMENT, arm_sp_sim);
/* do peephole optimizations and fix stack offsets */
arm_peephole_optimization(irg);
......
......@@ -35,8 +35,6 @@
#include "gen_arm_regalloc_if.h"
#include "gen_arm_new_nodes.h"
#define ARM_PO2_STACK_ALIGNMENT 3
DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;)
static const arch_register_t *sp_reg = &arm_registers[REG_SP];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment