Commit 0df5e0ea authored by Matthias Braun's avatar Matthias Braun
Browse files

fix cparser warnings

parent d5d7159c
......@@ -244,7 +244,7 @@ void be_free_loop_pressure(be_loopana_t *loop_ana)
xfree(loop_ana);
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_loopana);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_loopana)
void be_init_loopana(void)
{
FIRM_DBG_REGISTER(dbg, "firm.be.loopana");
......
......@@ -900,7 +900,7 @@ found_front:
while (!sched_is_begin(node)) {
const arch_register_req_t *req;
int input = -1;
ir_node *proj;
ir_node *proj = NULL;
/* search if node is a INPUT of Perm */
foreach_out_edge(perm, edge) {
......
......@@ -58,7 +58,6 @@ void be_init_daemelspill(void);
void be_init_dbgout(void);
void be_init_arch_ia32(void);
void be_init_arch_arm(void);
void be_init_arch_sparc(void);
void be_init_arch_amd64(void);
void be_init_arch_sta(void);
void be_init_arch_sparc(void);
......
......@@ -785,7 +785,7 @@ static void be_pbqp_coloring(be_chordal_env_t *env)
/**
* Initializes this module.
*/
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_pbqp_coloring);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_pbqp_coloring)
void be_init_pbqp_coloring(void)
{
lc_opt_entry_t *be_grp = lc_opt_get_grp(firm_opt_get_root(), "be");
......
......@@ -315,7 +315,7 @@ void be_peephole_opt(ir_graph *irg)
xfree(register_values);
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_peephole);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_peephole)
void be_init_peephole(void)
{
FIRM_DBG_REGISTER(dbg, "firm.be.peephole");
......
......@@ -635,12 +635,12 @@ static bool try_optimistic_split(ir_node *to_split, ir_node *before,
ir_node *original_insn;
ir_node *block;
ir_node *copy;
unsigned r;
unsigned r = 0;
unsigned from_r;
unsigned i;
allocation_info_t *info = get_allocation_info(to_split);
reg_pref_t *prefs;
float delta;
float delta = 0;
float split_threshold;
(void) pref;
......@@ -747,7 +747,7 @@ static void assign_reg(const ir_node *block, ir_node *node,
ir_node *in_node;
unsigned i;
const unsigned *allowed_regs;
unsigned r;
unsigned r = 0;
assert(!is_Phi(node));
/* preassigned register? */
......@@ -1964,7 +1964,7 @@ static void be_pref_alloc(ir_graph *new_irg)
obstack_free(&obst, NULL);
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_pref_alloc);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_pref_alloc)
void be_init_pref_alloc(void)
{
static be_ra_t be_ra_pref = {
......
......@@ -60,7 +60,7 @@ void be_allocate_registers(ir_graph *irg)
}
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_ra);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_ra)
void be_init_ra(void)
{
lc_opt_entry_t *be_grp = lc_opt_get_grp(firm_opt_get_root(), "be");
......
......@@ -166,7 +166,7 @@ void be_schedule_graph(ir_graph *irg)
scheduler(irg);
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_sched);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_sched)
void be_init_sched(void)
{
lc_opt_entry_t *be_grp = lc_opt_get_grp(firm_opt_get_root(), "be");
......
......@@ -446,7 +446,7 @@ static void sched_normal(ir_graph *irg)
be_list_sched_graph(irg, &normal_selector);
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_sched_normal);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_sched_normal)
void be_init_sched_normal(void)
{
be_register_scheduler("normal", sched_normal);
......
......@@ -103,7 +103,7 @@ static void sched_random(ir_graph *irg)
be_list_sched_graph(irg, &random_selector);
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_sched_rand);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_sched_rand)
void be_init_sched_rand(void)
{
be_register_scheduler("random", sched_random);
......
......@@ -311,7 +311,7 @@ static void sched_reg_pressure(ir_graph *irg)
be_list_sched_graph(irg, &reg_pressure_selector);
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_sched_regpress);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_sched_regpress)
void be_init_sched_regpress(void)
{
be_register_scheduler("regpress", sched_reg_pressure);
......
......@@ -745,7 +745,7 @@ static void sched_heuristic(ir_graph *irg)
be_list_sched_graph(irg, &heuristic_selector);
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_sched_trace);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_sched_trace)
void be_init_sched_trace(void)
{
be_register_scheduler("heur", sched_heuristic);
......
......@@ -89,7 +89,7 @@ static void sched_trivial(ir_graph *irg)
be_list_sched_graph(irg, &trivial_selector);
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_sched_trivial);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_sched_trivial)
void be_init_sched_trivial(void)
{
be_register_scheduler("trivial", sched_trivial);
......
......@@ -281,7 +281,7 @@ void be_do_spill(ir_graph *irg, const arch_register_class_t *cls)
selected_spiller->spill(irg, cls);
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_spilloptions);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_spilloptions)
void be_init_spilloptions(void)
{
lc_opt_entry_t *be_grp = lc_opt_get_grp(firm_opt_get_root(), "be");
......
......@@ -999,7 +999,7 @@ static void be_spill_belady(ir_graph *irg, const arch_register_class_t *rcls)
obstack_free(&obst, NULL);
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_spillbelady);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_spillbelady)
void be_init_spillbelady(void)
{
static be_spiller_t belady_spiller = {
......
......@@ -387,7 +387,7 @@ static void be_spill_daemel(ir_graph *irg, const arch_register_class_t *new_cls)
be_delete_spill_env(spill_env);
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_daemelspill);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_daemelspill)
void be_init_daemelspill(void)
{
static be_spiller_t daemel_spiller = {
......
......@@ -802,7 +802,7 @@ void be_assign_entities(be_fec_env_t *env,
create_memperms(env);
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_spillslots);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_spillslots)
void be_init_spillslots(void)
{
FIRM_DBG_REGISTER(dbg, "firm.be.spillslots");
......
......@@ -1020,7 +1020,7 @@ void be_insert_spills_reloads(spill_env_t *env)
be_timer_pop(T_RA_SPILL_APPLY);
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_spill);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_spill)
void be_init_spill(void)
{
FIRM_DBG_REGISTER(dbg, "firm.be.spill");
......
......@@ -637,7 +637,7 @@ void be_ssa_construction_update_liveness_phis(be_ssa_construction_env_t *env,
be_timer_pop(T_SSA_CONSTR);
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_ssaconstr);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_ssaconstr)
void be_init_ssaconstr(void)
{
FIRM_DBG_REGISTER(dbg, "firm.be.ssaconstr");
......
......@@ -831,11 +831,11 @@ static void stabs_variable(dbg_handle *handle, const ir_entity *ent)
if (linkage & IR_LINKAGE_CONSTANT)
kind = N_ROSYM;
snprintf(buf, sizeof(buf), "\t.stabs\t\"%s:S%u\",%d,0,0,%s\n",
get_entity_name(ent), tp_num, kind, get_entity_ld_name(ent));
get_entity_name(ent), tp_num, kind, get_entity_ld_name(ent));
} else {
/* a global variable */
snprintf(buf, sizeof(buf), "\t.stabs\t\"%s:G%u\",%d,0,0,0\n",
get_entity_name(ent), tp_num, N_GSYM);
get_entity_name(ent), tp_num, (int)N_GSYM);
}
buf[sizeof(buf) - 1] = '\0';
......@@ -875,7 +875,7 @@ static dbg_handle *be_stabs_open(void)
return &h->base;
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_stabs);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_stabs)
void be_init_stabs(void)
{
be_register_dbgout_module("stabs", be_stabs_open);
......
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