summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestack.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-11-04 13:15:30 +0100
committerMatthias Braun <matze@braunis.de>2010-11-04 13:15:30 +0100
commitce6161a7e42a48f7422b7babcc64d8ace18e2687 (patch)
tree2fa5272f9220c4e08a5309057f44646fb9f882a7 /ir/be/bestack.c
parentfd269bc519af571ad9a96afd65bcd504f3034f8b (diff)
make firm compilable with a c++ compiler
[r28127]
Diffstat (limited to 'ir/be/bestack.c')
-rw-r--r--ir/be/bestack.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ir/be/bestack.c b/ir/be/bestack.c
index 14fa990..320c5c8 100644
--- a/ir/be/bestack.c
+++ b/ir/be/bestack.c
@@ -141,11 +141,11 @@ static void lower_outer_frame_sels(ir_node *sel, void *ctx)
/**
* A helper struct for the bias walker.
*/
-struct bias_walk {
+typedef struct bias_walk {
int start_block_bias; /**< The bias at the end of the start block. */
int between_size;
ir_node *start_block; /**< The start block of the current graph. */
-};
+} bias_walk;
/**
* Fix all stack accessing operations in the block bl.
@@ -233,7 +233,7 @@ static int process_stack_bias(ir_node *bl, int real_bias)
*/
static void stack_bias_walker(ir_node *bl, void *data)
{
- struct bias_walk *bw = data;
+ bias_walk *bw = (bias_walk*)data;
if (bl != bw->start_block) {
process_stack_bias(bl, bw->start_block_bias);
}
@@ -243,8 +243,8 @@ void be_abi_fix_stack_bias(ir_graph *irg)
{
be_stack_layout_t *stack_layout = be_get_irg_stack_layout(irg);
ir_type *frame_tp;
- int i;
- struct bias_walk bw;
+ int i;
+ bias_walk bw;
stack_frame_compute_initial_offset(stack_layout);
@@ -280,7 +280,7 @@ typedef struct fix_stack_walker_env_t {
static void collect_stack_nodes_walker(ir_node *node, void *data)
{
ir_node *insn = node;
- fix_stack_walker_env_t *env = data;
+ fix_stack_walker_env_t *env = (fix_stack_walker_env_t*)data;
const arch_register_req_t *req;
if (is_Proj(node)) {