Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
e610ea5c
Commit
e610ea5c
authored
Apr 03, 2016
by
Matthias Braun
Browse files
arm: Fix stack alignment
parent
09e7542f
Changes
3
Hide whitespace changes
Inline
Side-by-side
ir/be/arm/arm_bearch_t.h
View file @
e610ea5c
...
...
@@ -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
;
...
...
ir/be/arm/arm_finish.c
View file @
e610ea5c
...
...
@@ -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
);
...
...
ir/be/arm/arm_transform.c
View file @
e610ea5c
...
...
@@ -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
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment