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

fixed warnings

[r14596]
parent b51980e6
...@@ -424,6 +424,8 @@ static void lower_Store(ir_node *node, ir_mode *mode, lower_env_t *env) { ...@@ -424,6 +424,8 @@ static void lower_Store(ir_node *node, ir_mode *mode, lower_env_t *env) {
dbg_info *dbg; dbg_info *dbg;
int idx; int idx;
node_entry_t *entry; node_entry_t *entry;
(void) node;
(void) mode;
irn = get_Store_value(node); irn = get_Store_value(node);
entry = env->entries[get_irn_idx(irn)]; entry = env->entries[get_irn_idx(irn)];
...@@ -1218,6 +1220,7 @@ static void lower_Cond(ir_node *node, ir_mode *mode, lower_env_t *env) { ...@@ -1218,6 +1220,7 @@ static void lower_Cond(ir_node *node, ir_mode *mode, lower_env_t *env) {
ir_node *sel = get_Cond_selector(node); ir_node *sel = get_Cond_selector(node);
ir_mode *m = get_irn_mode(sel); ir_mode *m = get_irn_mode(sel);
int idx; int idx;
(void) mode;
if (m == mode_b) { if (m == mode_b) {
node_entry_t *lentry, *rentry; node_entry_t *lentry, *rentry;
...@@ -1730,6 +1733,7 @@ static void lower_Return(ir_node *node, ir_mode *mode, lower_env_t *env) { ...@@ -1730,6 +1733,7 @@ static void lower_Return(ir_node *node, ir_mode *mode, lower_env_t *env) {
ir_node **in; ir_node **in;
int i, j, n, idx; int i, j, n, idx;
int need_conv = 0; int need_conv = 0;
(void) mode;
/* check if this return must be lowered */ /* check if this return must be lowered */
for (i = 0, n = get_Return_n_ress(node); i < n; ++i) { for (i = 0, n = get_Return_n_ress(node); i < n; ++i) {
...@@ -1788,6 +1792,7 @@ static void lower_Start(ir_node *node, ir_mode *mode, lower_env_t *env) { ...@@ -1788,6 +1792,7 @@ static void lower_Start(ir_node *node, ir_mode *mode, lower_env_t *env) {
long *new_projs; long *new_projs;
int i, j, n_params, rem; int i, j, n_params, rem;
ir_node *proj, *args; ir_node *proj, *args;
(void) mode;
if (is_lowered_type(tp)) { if (is_lowered_type(tp)) {
mtp = get_associated_type(tp); mtp = get_associated_type(tp);
...@@ -1875,6 +1880,7 @@ static void lower_Call(ir_node *node, ir_mode *mode, lower_env_t *env) { ...@@ -1875,6 +1880,7 @@ static void lower_Call(ir_node *node, ir_mode *mode, lower_env_t *env) {
int n_params, n_res, need_lower = 0; int n_params, n_res, need_lower = 0;
int i, j; int i, j;
long *res_numbers = NULL; long *res_numbers = NULL;
(void) mode;
if (is_lowered_type(tp)) { if (is_lowered_type(tp)) {
call_tp = get_associated_type(tp); call_tp = get_associated_type(tp);
...@@ -2279,6 +2285,7 @@ static void lower_ops(ir_node *node, void *env) ...@@ -2279,6 +2285,7 @@ static void lower_ops(ir_node *node, void *env)
static int cmp_op_mode(const void *elt, const void *key, size_t size) { static int cmp_op_mode(const void *elt, const void *key, size_t size) {
const op_mode_entry_t *e1 = elt; const op_mode_entry_t *e1 = elt;
const op_mode_entry_t *e2 = key; const op_mode_entry_t *e2 = key;
(void) size;
return (e1->op - e2->op) | (e1->imode - e2->imode) | (e1->omode - e2->omode); return (e1->op - e2->op) | (e1->imode - e2->imode) | (e1->omode - e2->omode);
} /* cmp_op_mode */ } /* cmp_op_mode */
...@@ -2289,6 +2296,7 @@ static int cmp_op_mode(const void *elt, const void *key, size_t size) { ...@@ -2289,6 +2296,7 @@ static int cmp_op_mode(const void *elt, const void *key, size_t size) {
static int cmp_conv_tp(const void *elt, const void *key, size_t size) { static int cmp_conv_tp(const void *elt, const void *key, size_t size) {
const conv_tp_entry_t *e1 = elt; const conv_tp_entry_t *e1 = elt;
const conv_tp_entry_t *e2 = key; const conv_tp_entry_t *e2 = key;
(void) size;
return (e1->imode - e2->imode) | (e1->omode - e2->omode); return (e1->imode - e2->imode) | (e1->omode - e2->omode);
} /* static int cmp_conv_tp */ } /* static int cmp_conv_tp */
...@@ -2489,6 +2497,7 @@ ir_entity *def_create_intrinsic_fkt(ir_type *method, const ir_op *op, ...@@ -2489,6 +2497,7 @@ ir_entity *def_create_intrinsic_fkt(ir_type *method, const ir_op *op,
char buf[64]; char buf[64];
ident *id; ident *id;
ir_entity *ent; ir_entity *ent;
(void) context;
if (imode == omode) { if (imode == omode) {
snprintf(buf, sizeof(buf), "__l%s%s", get_op_name(op), get_mode_name(imode)); snprintf(buf, sizeof(buf), "__l%s%s", get_op_name(op), get_mode_name(imode));
......
...@@ -498,6 +498,7 @@ static void lower_bitfields_stores(ir_node *store) { ...@@ -498,6 +498,7 @@ static void lower_bitfields_stores(ir_node *store) {
* lowers IR-nodes, called from walker * lowers IR-nodes, called from walker
*/ */
static void lower_irnode(ir_node *irn, void *env) { static void lower_irnode(ir_node *irn, void *env) {
(void) env;
switch (get_irn_opcode(irn)) { switch (get_irn_opcode(irn)) {
case iro_Sel: case iro_Sel:
lower_sel(irn); lower_sel(irn);
...@@ -514,6 +515,7 @@ static void lower_irnode(ir_node *irn, void *env) { ...@@ -514,6 +515,7 @@ static void lower_irnode(ir_node *irn, void *env) {
* Walker: lowers IR-nodes for bitfield access * Walker: lowers IR-nodes for bitfield access
*/ */
static void lower_bf_access(ir_node *irn, void *env) { static void lower_bf_access(ir_node *irn, void *env) {
(void) env;
switch (get_irn_opcode(irn)) { switch (get_irn_opcode(irn)) {
case iro_Proj: case iro_Proj:
{ {
......
...@@ -74,7 +74,7 @@ static void call_mapper(ir_node *node, void *env) { ...@@ -74,7 +74,7 @@ static void call_mapper(ir_node *node, void *env) {
wenv->nr_of_intrinsics += r->i_mapper(node, r->ctx) ? 1 : 0; wenv->nr_of_intrinsics += r->i_mapper(node, r->ctx) ? 1 : 0;
} }
} else { } else {
if (op->code < (unsigned)ARR_LEN(wenv->i_map)) { if (op->code < (unsigned) ARR_LEN(wenv->i_map)) {
const i_instr_record *r = wenv->i_map[op->code]; const i_instr_record *r = wenv->i_map[op->code];
/* run all possible mapper */ /* run all possible mapper */
while (r) { while (r) {
...@@ -107,7 +107,7 @@ unsigned lower_intrinsics(i_record *list, int length) { ...@@ -107,7 +107,7 @@ unsigned lower_intrinsics(i_record *list, int length) {
pmap_insert(c_map, list[i].i_call.i_ent, (void *)&list[i].i_call); pmap_insert(c_map, list[i].i_call.i_ent, (void *)&list[i].i_call);
} else { } else {
ir_op *op = list[i].i_instr.op; ir_op *op = list[i].i_instr.op;
assert(op->code < (unsigned)ARR_LEN(i_map)); assert(op->code < (unsigned) ARR_LEN(i_map));
list[i].i_instr.link = i_map[op->code]; list[i].i_instr.link = i_map[op->code];
i_map[op->code] = &list[i].i_instr; i_map[op->code] = &list[i].i_instr;
...@@ -154,6 +154,7 @@ int i_mapper_Abs(ir_node *call, void *ctx) { ...@@ -154,6 +154,7 @@ int i_mapper_Abs(ir_node *call, void *ctx) {
ir_node *op = get_Call_param(call, 0); ir_node *op = get_Call_param(call, 0);
ir_node *irn; ir_node *irn;
dbg_info *dbg = get_irn_dbg_info(call); dbg_info *dbg = get_irn_dbg_info(call);
(void) ctx;
irn = new_rd_Abs(dbg, current_ir_graph, block, op, get_irn_mode(op)); irn = new_rd_Abs(dbg, current_ir_graph, block, op, get_irn_mode(op));
irn = new_Tuple(1, &irn); irn = new_Tuple(1, &irn);
...@@ -176,6 +177,7 @@ int i_mapper_Alloca(ir_node *call, void *ctx) { ...@@ -176,6 +177,7 @@ int i_mapper_Alloca(ir_node *call, void *ctx) {
ir_node *op = get_Call_param(call, 0); ir_node *op = get_Call_param(call, 0);
ir_node *irn, *exc, *no_exc; ir_node *irn, *exc, *no_exc;
dbg_info *dbg = get_irn_dbg_info(call); dbg_info *dbg = get_irn_dbg_info(call);
(void) ctx;
irn = new_rd_Alloc(dbg, current_ir_graph, block, mem, op, firm_unknown_type, stack_alloc); irn = new_rd_Alloc(dbg, current_ir_graph, block, mem, op, firm_unknown_type, stack_alloc);
mem = new_Proj(irn, mode_M, pn_Alloc_M); mem = new_Proj(irn, mode_M, pn_Alloc_M);
......
Supports Markdown
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