Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
5a701e67
Commit
5a701e67
authored
Nov 25, 2014
by
Matthias Braun
Browse files
fix gcc warning
parent
1633ac39
Changes
5
Hide whitespace changes
Inline
Side-by-side
ir/be/TEMPLATE/bearch_TEMPLATE.c
View file @
5a701e67
...
...
@@ -39,6 +39,8 @@ DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;)
/* fill register allocator interface */
static
const
arch_irn_ops_t
TEMPLATE_irn_ops
=
{
.
get_op_estimated_cost
=
NULL
,
.
perform_memory_operand
=
NULL
,
};
/**
...
...
ir/be/amd64/bearch_amd64.c
View file @
5a701e67
...
...
@@ -118,6 +118,8 @@ static int amd64_get_sp_bias(const ir_node *node)
/* fill register allocator interface */
static
const
arch_irn_ops_t
amd64_irn_ops
=
{
.
get_op_estimated_cost
=
NULL
,
.
perform_memory_operand
=
NULL
,
};
static
void
amd64_before_ra
(
ir_graph
*
irg
)
...
...
ir/be/arm/bearch_arm.c
View file @
5a701e67
...
...
@@ -62,6 +62,8 @@ ir_mode *arm_mode_flags;
/* fill register allocator interface */
const
arch_irn_ops_t
arm_irn_ops
=
{
.
get_op_estimated_cost
=
NULL
,
.
perform_memory_operand
=
NULL
,
};
/**
...
...
ir/be/benode.c
View file @
5a701e67
...
...
@@ -472,7 +472,9 @@ unsigned be_get_IncSP_align(const ir_node *irn)
}
/* for be nodes */
static
const
arch_irn_ops_t
be_node_irn_ops
=
{
static
const
arch_irn_ops_t
null_ops
=
{
.
get_op_estimated_cost
=
NULL
,
.
perform_memory_operand
=
NULL
,
};
static
unsigned
get_start_reg_index
(
ir_graph
*
irg
,
const
arch_register_t
*
reg
)
...
...
@@ -500,10 +502,6 @@ ir_node *be_get_initial_reg_value(ir_graph *irg, const arch_register_t *reg)
return
proj
?
proj
:
new_r_Proj
(
start
,
reg
->
cls
->
mode
,
i
);
}
/* for "middleend" nodes */
static
const
arch_irn_ops_t
dummy_be_irn_ops
=
{
};
ir_node
*
be_new_Phi
(
ir_node
*
block
,
int
n_ins
,
ir_node
**
ins
,
ir_mode
*
mode
,
const
arch_register_req_t
*
req
)
{
...
...
@@ -555,9 +553,6 @@ void be_dump_phi_reg_reqs(FILE *F, const ir_node *node, dump_reason_t reason)
}
}
static
const
arch_irn_ops_t
phi_irn_ops
=
{
};
/**
* ir_op-Operation: dump a be node to file
*/
...
...
@@ -657,7 +652,7 @@ static ir_op *new_be_op(unsigned code, const char *name, op_pin_state p,
ir_op
*
res
=
new_ir_op
(
code
,
name
,
p
,
flags
,
opar
,
0
,
attr_size
);
set_op_dump
(
res
,
dump_node
);
set_op_copy_attr
(
res
,
copy_attr
);
res
->
ops
.
be_ops
=
&
be_node_irn
_ops
;
res
->
ops
.
be_ops
=
&
null
_ops
;
set_op_tag
(
res
,
be_op_tag
);
return
res
;
}
...
...
@@ -688,9 +683,9 @@ void be_init_op(void)
for
(
unsigned
opc
=
iro_first
;
opc
<=
iro_last
;
++
opc
)
{
ir_op
*
op
=
ir_get_opcode
(
opc
);
assert
(
op
->
ops
.
be_ops
==
NULL
);
op
->
ops
.
be_ops
=
&
dummy_be_irn
_ops
;
op
->
ops
.
be_ops
=
&
null
_ops
;
}
op_Phi
->
ops
.
be_ops
=
&
phi_irn
_ops
;
op_Phi
->
ops
.
be_ops
=
&
null
_ops
;
}
void
be_finish_op
(
void
)
...
...
ir/be/sparc/bearch_sparc.c
View file @
5a701e67
...
...
@@ -124,6 +124,8 @@ static const lc_opt_table_entry_t sparc_options[] = {
/* fill register allocator interface */
const
arch_irn_ops_t
sparc_irn_ops
=
{
.
get_op_estimated_cost
=
NULL
,
.
perform_memory_operand
=
NULL
,
};
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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